From b54be912d8dcdf7a4d8e0944793dfbea366df487 Mon Sep 17 00:00:00 2001 From: hning86 Date: Wed, 30 Jan 2019 17:04:18 -0500 Subject: [PATCH 1/2] dockerfiles added --- Dockerfiles/1.0.10/Dockerfile | 30 ++++++++++++++++++++++++++++++ Dockerfiles/1.0.2/Dockerfile | 30 ++++++++++++++++++++++++++++++ Dockerfiles/1.0.6/Dockerfile | 30 ++++++++++++++++++++++++++++++ Dockerfiles/1.0.8/Dockerfile | 30 ++++++++++++++++++++++++++++++ 4 files changed, 120 insertions(+) create mode 100644 Dockerfiles/1.0.10/Dockerfile create mode 100644 Dockerfiles/1.0.2/Dockerfile create mode 100644 Dockerfiles/1.0.6/Dockerfile create mode 100644 Dockerfiles/1.0.8/Dockerfile diff --git a/Dockerfiles/1.0.10/Dockerfile b/Dockerfiles/1.0.10/Dockerfile new file mode 100644 index 00000000..b3ff176d --- /dev/null +++ b/Dockerfiles/1.0.10/Dockerfile @@ -0,0 +1,30 @@ +FROM continuumio/miniconda:4.5.11 +MAINTAINER mit_hai@hotmail.com + +# create a new conda environment named azureml +RUN conda create -n azureml -y Python=3.6 + +# install azurmel-sdk components +RUN ["/bin/bash", "-c", "source activate azureml && pip install azureml-sdk[notebooks]==1.0.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 git +RUN apt-get update && apt-get upgrade -y && apt-get install -y git + +# clone Azure ML GitHub sample notebooks +RUN cd /home && git clone -b "azureml-sdk-1.0.10" --single-branch git@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/Dockerfiles/1.0.2/Dockerfile b/Dockerfiles/1.0.2/Dockerfile new file mode 100644 index 00000000..8ec19448 --- /dev/null +++ b/Dockerfiles/1.0.2/Dockerfile @@ -0,0 +1,30 @@ +FROM continuumio/miniconda:4.5.11 +MAINTAINER mit_hai@hotmail.com + +# create a new conda environment named azureml +RUN conda create -n azureml -y -q Python=3.6 + +# install azurmel-sdk components +RUN ["/bin/bash", "-c", "source activate azureml && pip install azureml-sdk[notebooks]==1.0.2"] + +# 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 git +RUN apt-get update && apt-get upgrade -y && apt-get install -y git + +# clone Azure ML GitHub sample notebooks +RUN cd /home && git clone -b "azureml-sdk-1.0.2" --single-branch git@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/Dockerfiles/1.0.6/Dockerfile b/Dockerfiles/1.0.6/Dockerfile new file mode 100644 index 00000000..7f14f600 --- /dev/null +++ b/Dockerfiles/1.0.6/Dockerfile @@ -0,0 +1,30 @@ +FROM continuumio/miniconda:4.5.11 +MAINTAINER mit_hai@hotmail.com + +# create a new conda environment named azureml +RUN conda create -n azureml -y -q Python=3.6 + +# install azurmel-sdk components +RUN ["/bin/bash", "-c", "source activate azureml && pip install azureml-sdk[notebooks]==1.0.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 git +RUN apt-get update && apt-get upgrade -y && apt-get install -y git + +# clone Azure ML GitHub sample notebooks +RUN cd /home && git clone -b "azureml-sdk-1.0.6" --single-branch git@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/Dockerfiles/1.0.8/Dockerfile b/Dockerfiles/1.0.8/Dockerfile new file mode 100644 index 00000000..68491a1c --- /dev/null +++ b/Dockerfiles/1.0.8/Dockerfile @@ -0,0 +1,30 @@ +FROM continuumio/miniconda:4.5.11 +MAINTAINER mit_hai@hotmail.com + +# create a new conda environment named azureml +RUN conda create -n azureml -y -q Python=3.6 + +# install azurmel-sdk components +RUN ["/bin/bash", "-c", "source activate azureml && pip install azureml-sdk[notebooks]==1.0.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 git +RUN apt-get update && apt-get upgrade -y && apt-get install -y git + +# clone Azure ML GitHub sample notebooks +RUN cd /home && git clone -b "azureml-sdk-1.0.8" --single-branch git@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 From 0fdab91b97d498bd281ee55f6220e6fcfd648553 Mon Sep 17 00:00:00 2001 From: hning86 Date: Thu, 31 Jan 2019 09:21:06 -0500 Subject: [PATCH 2/2] dockefile reorg --- Dockerfiles/1.0.10/Dockerfile | 21 ++++++++++----------- Dockerfiles/1.0.2/Dockerfile | 21 ++++++++++----------- Dockerfiles/1.0.6/Dockerfile | 21 ++++++++++----------- Dockerfiles/1.0.8/Dockerfile | 21 ++++++++++----------- 4 files changed, 40 insertions(+), 44 deletions(-) diff --git a/Dockerfiles/1.0.10/Dockerfile b/Dockerfiles/1.0.10/Dockerfile index b3ff176d..fe55aeae 100644 --- a/Dockerfiles/1.0.10/Dockerfile +++ b/Dockerfiles/1.0.10/Dockerfile @@ -1,20 +1,19 @@ FROM continuumio/miniconda:4.5.11 -MAINTAINER mit_hai@hotmail.com - -# create a new conda environment named azureml -RUN conda create -n azureml -y Python=3.6 - -# install azurmel-sdk components -RUN ["/bin/bash", "-c", "source activate azureml && pip install azureml-sdk[notebooks]==1.0.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 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.10"] + # clone Azure ML GitHub sample notebooks -RUN cd /home && git clone -b "azureml-sdk-1.0.10" --single-branch git@github.com:Azure/MachineLearningNotebooks.git +RUN cd /home && git clone -b "azureml-sdk-1.0.10" --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"] diff --git a/Dockerfiles/1.0.2/Dockerfile b/Dockerfiles/1.0.2/Dockerfile index 8ec19448..3d990785 100644 --- a/Dockerfiles/1.0.2/Dockerfile +++ b/Dockerfiles/1.0.2/Dockerfile @@ -1,20 +1,19 @@ FROM continuumio/miniconda:4.5.11 -MAINTAINER mit_hai@hotmail.com - -# create a new conda environment named azureml -RUN conda create -n azureml -y -q Python=3.6 - -# install azurmel-sdk components -RUN ["/bin/bash", "-c", "source activate azureml && pip install azureml-sdk[notebooks]==1.0.2"] - -# 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 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.2"] + # clone Azure ML GitHub sample notebooks -RUN cd /home && git clone -b "azureml-sdk-1.0.2" --single-branch git@github.com:Azure/MachineLearningNotebooks.git +RUN cd /home && git clone -b "azureml-sdk-1.0.2" --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"] diff --git a/Dockerfiles/1.0.6/Dockerfile b/Dockerfiles/1.0.6/Dockerfile index 7f14f600..ec46a596 100644 --- a/Dockerfiles/1.0.6/Dockerfile +++ b/Dockerfiles/1.0.6/Dockerfile @@ -1,20 +1,19 @@ FROM continuumio/miniconda:4.5.11 -MAINTAINER mit_hai@hotmail.com - -# create a new conda environment named azureml -RUN conda create -n azureml -y -q Python=3.6 - -# install azurmel-sdk components -RUN ["/bin/bash", "-c", "source activate azureml && pip install azureml-sdk[notebooks]==1.0.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 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.6"] + # clone Azure ML GitHub sample notebooks -RUN cd /home && git clone -b "azureml-sdk-1.0.6" --single-branch git@github.com:Azure/MachineLearningNotebooks.git +RUN cd /home && git clone -b "azureml-sdk-1.0.6" --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"] diff --git a/Dockerfiles/1.0.8/Dockerfile b/Dockerfiles/1.0.8/Dockerfile index 68491a1c..e138204b 100644 --- a/Dockerfiles/1.0.8/Dockerfile +++ b/Dockerfiles/1.0.8/Dockerfile @@ -1,20 +1,19 @@ FROM continuumio/miniconda:4.5.11 -MAINTAINER mit_hai@hotmail.com - -# create a new conda environment named azureml -RUN conda create -n azureml -y -q Python=3.6 - -# install azurmel-sdk components -RUN ["/bin/bash", "-c", "source activate azureml && pip install azureml-sdk[notebooks]==1.0.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 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.8"] + # clone Azure ML GitHub sample notebooks -RUN cd /home && git clone -b "azureml-sdk-1.0.8" --single-branch git@github.com:Azure/MachineLearningNotebooks.git +RUN cd /home && git clone -b "azureml-sdk-1.0.8" --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"]