mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-08-26 09:35:50 +00:00
Add new image for machine-learning-web-ui bundle
Add an image for the machine-learning-web-ui bundle to give easy access to a ready to run jupyter based environment.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
FROM clearlinux
|
||||
MAINTAINER william.douglas@intel.com
|
||||
|
||||
ARG swupd_args
|
||||
|
||||
RUN swupd update $swupd_args
|
||||
RUN swupd bundle-add machine-learning-web-ui
|
||||
|
||||
RUN rm -rf /var/lib/swupd
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
CMD ["jupyter-notebook"]
|
||||
|
||||
COPY jupyter_notebook_config.py /etc/jupyter/
|
||||
@@ -0,0 +1,35 @@
|
||||
Machine Learning
|
||||
================
|
||||
[](http://microbadger.com/images/clearlinux/machine-learning-ui "Get your own image badge on microbadger.com")
|
||||
[](http://microbadger.com/images/clearlinux/machine-learning-ui "Get your own version badge on microbadger.com")
|
||||
|
||||
This provides a machine learning environment with the `machine-learning-web-ui`,
|
||||
bundle from [Clearlinux](https://clearlinux.org/documentation/bundles_overview.html)
|
||||
|
||||
Build
|
||||
-----
|
||||
```
|
||||
docker build -t clearlinux/machine-learning-ui .
|
||||
```
|
||||
|
||||
Or just pull it from Dockerhub
|
||||
------------------------------
|
||||
```
|
||||
docker pull clearlinux/machine-learning-ui
|
||||
```
|
||||
|
||||
Run the machine-learning-ui Container
|
||||
----------------------------------
|
||||
```
|
||||
docker run -it clearlinux/machine-learning-ui
|
||||
```
|
||||
|
||||
Environment Variables
|
||||
---------------------
|
||||
none
|
||||
|
||||
Extra Build ARGs
|
||||
----------------
|
||||
- ``swupd_args`` Specifies [SWUPD](https://clearlinux.org/documentation/swupdate_how_to_run_the_updater.html) flags
|
||||
|
||||
Default build args in Docker are on: https://docs.docker.com/engine/reference/builder/#/arg
|
||||
@@ -0,0 +1,7 @@
|
||||
c = get_config()
|
||||
c.ContentsManager.root_dir = "/root/"
|
||||
c.NotebookApp.allow_root = True
|
||||
c.NotebookApp.ip = '*'
|
||||
c.NotebookApp.open_browser = False
|
||||
c.NotebookApp.port = 8888
|
||||
|
||||
Reference in New Issue
Block a user