From 267a6ae51e37b700d3d1ca25838c1bce4974c52b Mon Sep 17 00:00:00 2001 From: Cornelius Specht Date: Mon, 26 Feb 2024 11:30:01 +0100 Subject: [PATCH] try main --- .woodpecker.yml | 19 +++++++++---------- Dockerfile | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index d56f071..6acb9c2 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,17 +1,16 @@ steps: - publish-container: - image: taywee/woodpecker-buildah:amd64 - pull: true - environment: - - CONDA_CUDA_OVERRIDE=11.2 - - NVIDIA_VISIBLE_DEVICES=all + build_and_release: + image: maltegrosse/woodpecker-buildah:0.0.12 settings: registry: git.sandbox.iuk.hdm-stuttgart.de - repo: specht/woodpecker-test - cache: false -# tag: 0.0.1 + repository: grosse/jupyterlab-datascience + #tag: 4.0.12c + architectures: aarch64 amd64 context: Dockerfile + imagename: jupyterlab-datascience username: from_secret: docker_username password: - from_secret: docker_password \ No newline at end of file + from_secret: docker_password + when: + branch: main \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ea09cb5..35c57bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1 +1,21 @@ FROM hello-world:linux +ARG LAB_IMAGE=quay.io/jupyter/scipy-notebook:lab-4.0.12 +ARG NB_USER="jovyan" +ARG NB_UID="1000" +ARG NB_GID="100" +FROM ${LAB_IMAGE} +# kaniko issue https://github.com/GoogleContainerTools/kaniko/issues/1087 +SHELL ["/bin/bash", "-o", "pipefail", "-c"] +USER root +RUN apt-get update --yes && \ + apt-get install --yes --no-install-recommends \ + git-lfs +USER ${NB_UID} +RUN echo "install custom extensions " +RUN pip install --extra-index-url https://git.sandbox.iuk.hdm-stuttgart.de/api/packages/grosse/pypi/simple jupyterlab-sandbox-theme==0.1.4 +RUN pip install --extra-index-url https://git.sandbox.iuk.hdm-stuttgart.de/api/packages/grosse/pypi/simple jupyterlab-sandbox-announcement==0.1.3 +#RUN pip install --extra-index-url https://git.sandbox.iuk.hdm-stuttgart.de/api/packages/grosse/pypi/simple jupyterlab-data-pool +#RUN pip install --extra-index-url https://git.sandbox.iuk.hdm-stuttgart.de/api/packages/grosse/pypi/simple jupyterlab-training +#RUN pip install --extra-index-url https://git.sandbox.iuk.hdm-stuttgart.de/api/packages/grosse/pypi/simple jupyterlab-synthetic-data +RUN pip install ipywebrtc==0.6.0 opencv-python-headless==4.9.0.80 voila==0.5.5 +RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements" \ No newline at end of file