From 5fa103910eb6cd6f96132cc033bc6fa9b9bc6980 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 10 Apr 2017 15:41:29 +0200 Subject: [PATCH] Appliance for docker with python 2.7 --- appliances/jupyter.gns3a | 2 +- appliances/jupyter27.gns3a | 19 +++++++++++++++++++ docker/jupyter-2.7/Dockerfile | 13 +++++++++++++ docker/jupyter-2.7/jupyter_notebook_config.py | 2 ++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 appliances/jupyter27.gns3a create mode 100644 docker/jupyter-2.7/Dockerfile create mode 100644 docker/jupyter-2.7/jupyter_notebook_config.py diff --git a/appliances/jupyter.gns3a b/appliances/jupyter.gns3a index 371a33e..3bc584b 100644 --- a/appliances/jupyter.gns3a +++ b/appliances/jupyter.gns3a @@ -11,7 +11,7 @@ "maintainer_email": "developers@gns3.net", "docker": { "adapters": 1, - "image": "gns3/jupyter", + "image": "gns3/jupyter:v2", "console_type": "http", "console_http_port": 8888, "console_http_path": "/" diff --git a/appliances/jupyter27.gns3a b/appliances/jupyter27.gns3a new file mode 100644 index 0000000..b9c03aa --- /dev/null +++ b/appliances/jupyter27.gns3a @@ -0,0 +1,19 @@ +{ + "name": "Jupyter 2.7", + "category": "guest", + "description": "The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, machine learning and much more. This appliance provide python 2.7.", + "vendor_name": "Project Jupyter", + "vendor_url": "http://jupyter.org/", + "product_name": "Jupyter", + "registry_version": 3, + "status": "stable", + "maintainer": "GNS3 Team", + "maintainer_email": "developers@gns3.net", + "docker": { + "adapters": 1, + "image": "gns3/jupyter27:v1", + "console_type": "http", + "console_http_port": 8888, + "console_http_path": "/" + } +} diff --git a/docker/jupyter-2.7/Dockerfile b/docker/jupyter-2.7/Dockerfile new file mode 100644 index 0000000..37d13ce --- /dev/null +++ b/docker/jupyter-2.7/Dockerfile @@ -0,0 +1,13 @@ +FROM python:2.7 + +RUN pip install jupyter + +ADD jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py + +RUN mkdir -p /opt/notebooks + +EXPOSE 8888 + +VOLUME /opt/notebooks + +CMD jupyter notebook --no-browser /opt/notebooks diff --git a/docker/jupyter-2.7/jupyter_notebook_config.py b/docker/jupyter-2.7/jupyter_notebook_config.py new file mode 100644 index 0000000..d955109 --- /dev/null +++ b/docker/jupyter-2.7/jupyter_notebook_config.py @@ -0,0 +1,2 @@ +c.NotebookApp.token = '' +c.NotebookApp.password = ''