From 72f386298cfbf20c3e52cb31138e4822f1a0f80e Mon Sep 17 00:00:00 2001 From: Roope Astala Date: Mon, 8 Apr 2019 15:37:48 -0400 Subject: [PATCH] dockerfile and missing config update --- Dockerfiles/1.0.23/Dockerfile | 29 +++++++++++++++++++++++++++++ configuration.ipynb | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 Dockerfiles/1.0.23/Dockerfile diff --git a/Dockerfiles/1.0.23/Dockerfile b/Dockerfiles/1.0.23/Dockerfile new file mode 100644 index 00000000..b8e7f995 --- /dev/null +++ b/Dockerfiles/1.0.23/Dockerfile @@ -0,0 +1,29 @@ +FROM continuumio/miniconda:4.5.11 + +# install git +RUN apt-get update && apt-get upgrade -y && apt-get install -y git + +# create a new conda environment named azureml +RUN conda create -n azureml -y -q Python=3.6 + +# install additional packages used by sample notebooks. this is optional +RUN ["/bin/bash", "-c", "source activate azureml && conda install -y tqdm cython matplotlib scikit-learn"] + +# install azurmel-sdk components +RUN ["/bin/bash", "-c", "source activate azureml && pip install azureml-sdk[notebooks]==1.0.23"] + +# clone Azure ML GitHub sample notebooks +RUN cd /home && git clone -b "azureml-sdk-1.0.23" --single-branch https://github.com/Azure/MachineLearningNotebooks.git + +# generate jupyter configuration file +RUN ["/bin/bash", "-c", "source activate azureml && mkdir ~/.jupyter && cd ~/.jupyter && jupyter notebook --generate-config"] + +# set an emtpy token for Jupyter to remove authentication. +# this is NOT recommended for production environment +RUN echo "c.NotebookApp.token = ''" >> ~/.jupyter/jupyter_notebook_config.py + +# open up port 8887 on the container +EXPOSE 8887 + +# start Jupyter notebook server on port 8887 when the container starts +CMD /bin/bash -c "cd /home/MachineLearningNotebooks && source activate azureml && jupyter notebook --port 8887 --no-browser --ip 0.0.0.0 --allow-root" \ No newline at end of file diff --git a/configuration.ipynb b/configuration.ipynb index ae08c05e..f4002cf6 100644 --- a/configuration.ipynb +++ b/configuration.ipynb @@ -96,7 +96,7 @@ "source": [ "import azureml.core\n", "\n", - "print(\"This notebook was created using version 1.0.21 of the Azure ML SDK\")\n", + "print(\"This notebook was created using version 1.0.23 of the Azure ML SDK\")\n", "print(\"You are currently using version\", azureml.core.VERSION, \"of the Azure ML SDK\")" ] },