diff --git a/machine-learning-ui/Dockerfile b/machine-learning-ui/Dockerfile new file mode 100644 index 0000000..923f0a5 --- /dev/null +++ b/machine-learning-ui/Dockerfile @@ -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/ diff --git a/machine-learning-ui/README.md b/machine-learning-ui/README.md new file mode 100644 index 0000000..7ea6084 --- /dev/null +++ b/machine-learning-ui/README.md @@ -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 diff --git a/machine-learning-ui/jupyter_notebook_config.py b/machine-learning-ui/jupyter_notebook_config.py new file mode 100644 index 0000000..33ddb91 --- /dev/null +++ b/machine-learning-ui/jupyter_notebook_config.py @@ -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 +