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:
William Douglas
2017-06-05 16:25:44 +00:00
parent e2e562bfb0
commit d2e79f58f6
3 changed files with 57 additions and 0 deletions
+15
View File
@@ -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/
+35
View File
@@ -0,0 +1,35 @@
Machine Learning
================
[![](https://images.microbadger.com/badges/image/clearlinux/machine-learning-ui.svg)](http://microbadger.com/images/clearlinux/machine-learning-ui "Get your own image badge on microbadger.com")
[![](https://images.microbadger.com/badges/version/clearlinux/machine-learning-ui.svg)](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