From 4f6646b87742df9ed5bc4315ff2453bc9f1f4826 Mon Sep 17 00:00:00 2001 From: Moritz Maxeiner <mm@ucw.sh> Date: Fri, 27 Sep 2019 01:04:55 +0200 Subject: [PATCH] Remove jupyter docker image --- .gitlab-ci.yml | 2 -- ubuntu18.04/jupyter/Dockerfile | 28 ------------------- .../jupyter/jupyter_notebook_config.py | 5 ---- ubuntu18.04/jupyter/launch.sh | 12 -------- ubuntu18.04/jupyter/sshd_config | 17 ----------- 5 files changed, 64 deletions(-) delete mode 100644 ubuntu18.04/jupyter/Dockerfile delete mode 100644 ubuntu18.04/jupyter/jupyter_notebook_config.py delete mode 100755 ubuntu18.04/jupyter/launch.sh delete mode 100644 ubuntu18.04/jupyter/sshd_config diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 35c59d9..642a82c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,8 +18,6 @@ build ubuntu-18.04: - docker push "${CI_REGISTRY}/${CI_PROJECT_PATH,,}:devel-ubuntu18.04" - docker build $OPTS --pull -t "${CI_REGISTRY}/${CI_PROJECT_PATH,,}:cuda-devel-ubuntu18.04" -f ubuntu18.04/cuda-devel/Dockerfile ubuntu18.04 - docker push "${CI_REGISTRY}/${CI_PROJECT_PATH,,}:cuda-devel-ubuntu18.04" - - docker build $OPTS --pull -t "${CI_REGISTRY}/${CI_PROJECT_PATH,,}:jupyter-ubuntu18.04" -f ubuntu18.04/jupyter/Dockerfile ubuntu18.04/jupyter - - docker push "${CI_REGISTRY}/${CI_PROJECT_PATH,,}:jupyter-ubuntu18.04" after_script: - docker logout "${CI_REGISTRY}" diff --git a/ubuntu18.04/jupyter/Dockerfile b/ubuntu18.04/jupyter/Dockerfile deleted file mode 100644 index a9f40fe..0000000 --- a/ubuntu18.04/jupyter/Dockerfile +++ /dev/null @@ -1,28 +0,0 @@ -FROM git.imp.fu-berlin.de:5000/bioroboticslab/robofish/docker:cuda-devel-ubuntu18.04 - -RUN python3.7 -m pip --no-cache-dir install \ - numpy \ - scipy \ - matplotlib \ - pandas \ - jupyterlab - -RUN apt-get update && \ - apt-get install -y openssh-server && \ - mkdir -p /var/run/sshd && \ - mkdir /root/.ssh && \ - chmod 700 /root/.ssh && \ - touch /root/.ssh/authorized_keys && \ - apt-get clean - -COPY jupyter_notebook_config.py /root/.jupyter/ -COPY launch.sh /sbin -COPY sshd_config /etc/ssh/sshd_config - - -WORKDIR "/root" -ENTRYPOINT [ "/sbin/launch.sh" ] -CMD [ "sshd" ] - -EXPOSE 22 -EXPOSE 8080 diff --git a/ubuntu18.04/jupyter/jupyter_notebook_config.py b/ubuntu18.04/jupyter/jupyter_notebook_config.py deleted file mode 100644 index 28a3504..0000000 --- a/ubuntu18.04/jupyter/jupyter_notebook_config.py +++ /dev/null @@ -1,5 +0,0 @@ -c.NotebookApp.ip = '*' -c.NotebookApp.port = 8080 -c.NotebookApp.open_browser = False -c.NotebookApp.token = '' -c.NotebookApp.password = '' diff --git a/ubuntu18.04/jupyter/launch.sh b/ubuntu18.04/jupyter/launch.sh deleted file mode 100755 index f55914b..0000000 --- a/ubuntu18.04/jupyter/launch.sh +++ /dev/null @@ -1,12 +0,0 @@ -#! /bin/sh - -set -e - -case "$1" in -sshd) - exec /usr/sbin/sshd -D - ;; -*) - exec "$@" - ;; -esac \ No newline at end of file diff --git a/ubuntu18.04/jupyter/sshd_config b/ubuntu18.04/jupyter/sshd_config deleted file mode 100644 index 29b21d0..0000000 --- a/ubuntu18.04/jupyter/sshd_config +++ /dev/null @@ -1,17 +0,0 @@ -Port 22 - -PubkeyAuthentication yes -PasswordAuthentication no -PermitRootLogin prohibit-password -PermitEmptyPasswords no -UsePAM yes - -X11Forwarding yes -X11UseLocalhost no - -PrintMotd no -PrintLastLog no - -Subsystem sftp /usr/lib/openssh/sftp-server - -AcceptEnv LANG LC_* \ No newline at end of file -- GitLab