From aea64c66617326c7e5fa4c15679c2b9beeffb876 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 23 Oct 2019 22:37:56 +0200 Subject: [PATCH] disable token auth --- .gitlab-ci.yml | 20 ++++++++++++++++++++ Dockerfile | 5 +++++ VERSION | 1 + build.sh | 2 +- 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml create mode 100644 VERSION diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..481f842 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +image: docker:stable + +stages: + - build + +variables: + IMAGE_NAME: registry.gitlab.com/jupyter-scipy-database-extension + +build: + stage: build + tags: + - hottis + - linux + - docker + script: + - VERSION=`cat VERSION` + - docker build --tag $IMAGE_NAME:$VERSION . + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker push $IMAGE_NAME:$VERSION + diff --git a/Dockerfile b/Dockerfile index 3327006..7ec1db1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,13 @@ FROM jupyter/scipy-notebook +LABEL Maintainer="Wolfgang Hottgenroth " +LABEL ImageName="registry.gitlab.com/wolutator/registry.gitlab.com/wolutator/" + RUN \ pip install influxdb && \ pip install pymongo && \ fix-permissions $CONDA_DIR && \ fix-permissions /home/$NB_USER +CMD ["start-notebook.sh", "--NotebookApp.token=''"] + diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..5625e59 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.2 diff --git a/build.sh b/build.sh index 458723d..6eda1c5 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash -docker build --tag registry.gitlab.com/wolutator/jupyter-scipy-database-extension:latest --tag registry.gitlab.com/wolutator/jupyter-scipy-database-extension:1.0 . +docker build --tag registry.gitlab.com/wolutator/jupyter-scipy-database-extension:latest --tag registry.gitlab.com/wolutator/jupyter-scipy-database-extension:1.1 .