From 439edfe63abb93279bd11a4476ca21fa51f51903 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Mon, 6 Jun 2022 10:45:17 +0000 Subject: [PATCH] 1.5.0-debian-11-r0 release --- .../1/debian-11/Dockerfile | 31 +++++++++++++++++++ .../1/debian-11/docker-compose.yml | 7 +++++ .../opt/bitnami/.bitnami_components.json | 16 ++++++++++ .../opt/bitnami/licenses/licenses.txt | 3 ++ .../prebuildfs/usr/sbin/install_packages | 24 ++++++++++++++ bitnami/jupyter-base-notebook/README.md | 6 ++-- 6 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 bitnami/jupyter-base-notebook/1/debian-11/Dockerfile create mode 100644 bitnami/jupyter-base-notebook/1/debian-11/docker-compose.yml create mode 100644 bitnami/jupyter-base-notebook/1/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json create mode 100644 bitnami/jupyter-base-notebook/1/debian-11/prebuildfs/opt/bitnami/licenses/licenses.txt create mode 100755 bitnami/jupyter-base-notebook/1/debian-11/prebuildfs/usr/sbin/install_packages diff --git a/bitnami/jupyter-base-notebook/1/debian-11/Dockerfile b/bitnami/jupyter-base-notebook/1/debian-11/Dockerfile new file mode 100644 index 000000000000..25d0bc2437ed --- /dev/null +++ b/bitnami/jupyter-base-notebook/1/debian-11/Dockerfile @@ -0,0 +1,31 @@ +FROM docker.io/bitnami/minideb:bullseye +LABEL maintainer "Bitnami " + +ENV HOME="/opt/bitnami/jupyterhub-singleuser/" \ + OS_ARCH="amd64" \ + OS_FLAVOUR="debian-11" \ + OS_NAME="linux" + +COPY prebuildfs / +# Install required system packages and dependencies +RUN install_packages ca-certificates curl gzip libc6 libcrypt1 libgcc-s1 libstdc++6 procps tar wget +RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/miniconda-4.12.0-0-linux-amd64-debian-11.tar.gz && \ + echo "201be5831fa6788ceab41d328f488129e26dade81be94d3316fbec854841050d /tmp/bitnami/pkg/cache/miniconda-4.12.0-0-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \ + tar -zxf /tmp/bitnami/pkg/cache/miniconda-4.12.0-0-linux-amd64-debian-11.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \ + rm -rf /tmp/bitnami/pkg/cache/miniconda-4.12.0-0-linux-amd64-debian-11.tar.gz +RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/jupyter-base-notebook-1.5.0-0-linux-amd64-debian-11.tar.gz && \ + echo "5ec6f4ad30c9d487d78a5585a21325a9c41e69e46fd68fc729a86fad6841f8c1 /tmp/bitnami/pkg/cache/jupyter-base-notebook-1.5.0-0-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \ + tar -zxf /tmp/bitnami/pkg/cache/jupyter-base-notebook-1.5.0-0-linux-amd64-debian-11.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \ + rm -rf /tmp/bitnami/pkg/cache/jupyter-base-notebook-1.5.0-0-linux-amd64-debian-11.tar.gz +RUN apt-get update && apt-get upgrade -y && \ + rm -r /var/lib/apt/lists /var/cache/apt/archives +RUN chmod g+rwX /opt/bitnami +RUN mkdir /opt/bitnami/jupyterhub-singleuser/ && chmod g+rwX /opt/bitnami/jupyterhub-singleuser/ + +ENV APP_VERSION="1.5.0" \ + BITNAMI_APP_NAME="jupyter-base-notebook" \ + PATH="/opt/bitnami/miniconda/bin:$PATH" + +USER 1001 +ENTRYPOINT [ "tini", "-g", "--" ] +CMD [ "jupyterhub-singleuser" ] diff --git a/bitnami/jupyter-base-notebook/1/debian-11/docker-compose.yml b/bitnami/jupyter-base-notebook/1/debian-11/docker-compose.yml new file mode 100644 index 000000000000..c43ec5db2bcc --- /dev/null +++ b/bitnami/jupyter-base-notebook/1/debian-11/docker-compose.yml @@ -0,0 +1,7 @@ +version: '2' +services: + jupyter-base-notebook: + image: docker.io/bitnami/jupyter-base-notebook:1 + command: ["tail", "-f", "/dev/null"] + ports: + - 8888:8888 diff --git a/bitnami/jupyter-base-notebook/1/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/jupyter-base-notebook/1/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json new file mode 100644 index 000000000000..b8e2505ff40b --- /dev/null +++ b/bitnami/jupyter-base-notebook/1/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json @@ -0,0 +1,16 @@ +{ + "jupyter-base-notebook": { + "arch": "amd64", + "digest": "5ec6f4ad30c9d487d78a5585a21325a9c41e69e46fd68fc729a86fad6841f8c1", + "distro": "debian-11", + "type": "NAMI", + "version": "1.5.0-0" + }, + "miniconda": { + "arch": "amd64", + "digest": "201be5831fa6788ceab41d328f488129e26dade81be94d3316fbec854841050d", + "distro": "debian-11", + "type": "NAMI", + "version": "4.12.0-0" + } +} \ No newline at end of file diff --git a/bitnami/jupyter-base-notebook/1/debian-11/prebuildfs/opt/bitnami/licenses/licenses.txt b/bitnami/jupyter-base-notebook/1/debian-11/prebuildfs/opt/bitnami/licenses/licenses.txt new file mode 100644 index 000000000000..c76ba31f3b8a --- /dev/null +++ b/bitnami/jupyter-base-notebook/1/debian-11/prebuildfs/opt/bitnami/licenses/licenses.txt @@ -0,0 +1,3 @@ +Bitnami containers ship with software bundles. You can find the licenses under: +/opt/bitnami/nami/COPYING +/opt/bitnami/[name-of-bundle]/licenses/[bundle-version].txt diff --git a/bitnami/jupyter-base-notebook/1/debian-11/prebuildfs/usr/sbin/install_packages b/bitnami/jupyter-base-notebook/1/debian-11/prebuildfs/usr/sbin/install_packages new file mode 100755 index 000000000000..c9577647443b --- /dev/null +++ b/bitnami/jupyter-base-notebook/1/debian-11/prebuildfs/usr/sbin/install_packages @@ -0,0 +1,24 @@ +#!/bin/sh +set -e +set -u +export DEBIAN_FRONTEND=noninteractive +n=0 +max=2 +until [ $n -gt $max ]; do + set +e + ( + apt-get update -qq && + apt-get install -y --no-install-recommends "$@" + ) + CODE=$? + set -e + if [ $CODE -eq 0 ]; then + break + fi + if [ $n -eq $max ]; then + exit $CODE + fi + echo "apt failed, retrying" + n=$(($n + 1)) +done +rm -r /var/lib/apt/lists /var/cache/apt/archives diff --git a/bitnami/jupyter-base-notebook/README.md b/bitnami/jupyter-base-notebook/README.md index 314f0d606e79..44a558d367db 100644 --- a/bitnami/jupyter-base-notebook/README.md +++ b/bitnami/jupyter-base-notebook/README.md @@ -28,8 +28,8 @@ $ docker run --name jupyter-base-notebook bitnami/jupyter-base-notebook:latest Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/). -* [`2`, `2-debian-10`, `2.3.0`, `2.3.0-debian-10-r25`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-jupyter-base-notebook/blob/2.3.0-debian-10-r25/2/debian-10/Dockerfile) -* [`1`, `1-debian-10`, `1.5.0`, `1.5.0-debian-10-r194` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-jupyter-base-notebook/blob/1.5.0-debian-10-r194/1/debian-10/Dockerfile) +* [`2`, `2-debian-11`, `2.3.0`, `2.3.0-debian-11-r-1`, `latest` (2/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-jupyter-base-notebook/blob/2.3.0-debian-11-r-1/2/debian-11/Dockerfile) +* [`1`, `1-debian-11`, `1.5.0`, `1.5.0-debian-11-r0` (1/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-jupyter-base-notebook/blob/1.5.0-debian-11-r0/1/debian-11/Dockerfile) Subscribe to project updates by watching the [bitnami/jupyter-base-notebook GitHub repo](https://github.com/bitnami/bitnami-docker-jupyter-base-notebook). @@ -50,7 +50,7 @@ $ docker pull bitnami/jupyter-base-notebook:[TAG] If you wish, you can also build the image yourself. ```console -$ docker build -t bitnami/jupyter-base-notebook:latest 'https://github.com/bitnami/bitnami-docker-jupyter-base-notebook.git#master:2/debian-10' +$ docker build -t bitnami/jupyter-base-notebook:latest 'https://github.com/bitnami/bitnami-docker-jupyter-base-notebook.git#master:2/debian-11' ``` ## Why use a non-root container?