commit 64f95ff8f0209b8b1030e2fd1862efa1d7685626 Author: Wolfgang Hottgenroth Date: Fri Jan 18 23:07:40 2019 +0100 initial diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b321e0b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM ipython/notebook + +RUN \ + pip install --upgrade pip && \ + pip install numpy && \ + pip install matplotlib && \ + pip install influxdb + diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..e30b687 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +docker build --tag registry.gitlab.com/wolutator/ipythonwithdatabase:latest --tag registry.gitlab.com/wolutator/ipythonwithdatabase:1.0 . + diff --git a/start-ipython-notebook.sh b/start-ipython-notebook.sh new file mode 100755 index 0000000..07f781d --- /dev/null +++ b/start-ipython-notebook.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# docker volume create ipython-notebooks + +docker run \ + -d \ + -v ipython-notebooks:/notebooks \ + -p 8888:8888 \ + -e "PASSWORD=geheim" \ + --name ipython-notebook \ + registry.gitlab.com/wolutator/ipythonwithdatabase:latest +