From df6884ffaf3c3cfd80ceee42abeb6babe2be05e2 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Wed, 26 Jul 2023 12:32:28 +0400 Subject: [PATCH] Update tag example --- README.md | 10 +++++----- binder/Dockerfile | 4 ++-- docs/using/recipes.md | 14 +++++++------- docs/using/running.md | 14 +++++++------- examples/docker-compose/README.md | 2 +- examples/docker-compose/notebook/Dockerfile | 2 +- examples/make-deploy/Dockerfile | 2 +- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 0373b7965f..7d764bf94e 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,11 @@ The [User Guide on ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/ **Example 1:** -This command pulls the `jupyter/scipy-notebook` image tagged `2023-06-01` from Docker Hub if it is not already present on the local host. +This command pulls the `jupyter/scipy-notebook` image tagged `2023-07-25` from Docker Hub if it is not already present on the local host. It then starts a container running a Jupyter Server and exposes the container's internal port `8888` to port `10000` of the host machine: ```bash -docker run -p 10000:8888 jupyter/scipy-notebook:2023-06-01 +docker run -p 10000:8888 jupyter/scipy-notebook:2023-07-25 ``` You can modify the port on which the container's port is exposed by [changing the value of the `-p` option](https://docs.docker.com/engine/reference/run/#expose-incoming-ports) to `-p 8888:8888`. @@ -45,11 +45,11 @@ The container remains intact for restart after the Jupyter Server exits. **Example 2:** -This command pulls the `jupyter/datascience-notebook` image tagged `2023-06-01` from Docker Hub if it is not already present on the local host. +This command pulls the `jupyter/datascience-notebook` image tagged `2023-07-25` from Docker Hub if it is not already present on the local host. It then starts an _ephemeral_ container running a Jupyter Server and exposes the server on host port 10000. ```bash -docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/datascience-notebook:2023-06-01 +docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/datascience-notebook:2023-07-25 ``` The use of the `-v` flag in the command mounts the current working directory on the host (`${PWD}` in the example command) as `/home/jovyan/work` in the container. @@ -117,7 +117,7 @@ This change is tracked in the issue [#1217](https://github.com/jupyter/docker-st - We publish containers for both `x86_64` and `aarch64` platforms - Single-platform images have either `aarch64-` or `x86_64-` tag prefixes, for example, `jupyter/base-notebook:aarch64-python-3.10.5` - Starting from `2022-09-21`, we create multi-platform images (except `tensorflow-notebook`) -- Starting from `2023-06-01`, we create multi-platform `tensorflow-notebook` image as well +- Starting from `2023-07-25`, we create multi-platform `tensorflow-notebook` image as well ## Using old images diff --git a/binder/Dockerfile b/binder/Dockerfile index 4986e2f400..214a800824 100644 --- a/binder/Dockerfile +++ b/binder/Dockerfile @@ -3,7 +3,7 @@ # https://hub.docker.com/r/jupyter/base-notebook/tags ARG OWNER=jupyter -ARG BASE_CONTAINER=$OWNER/base-notebook:2023-06-01 +ARG BASE_CONTAINER=$OWNER/base-notebook:2023-07-25 FROM $BASE_CONTAINER LABEL maintainer="Jupyter Project " @@ -12,6 +12,6 @@ LABEL maintainer="Jupyter Project " # Fix: https://github.com/koalaman/shellcheck/wiki/SC3014 SHELL ["/bin/bash", "-o", "pipefail", "-c"] -ENV TAG="2023-06-01" +ENV TAG="2023-07-25" COPY --chown=${NB_UID}:${NB_GID} binder/README.ipynb "${HOME}"/README.ipynb diff --git a/docs/using/recipes.md b/docs/using/recipes.md index e99e4a624f..9b3d976d4f 100644 --- a/docs/using/recipes.md +++ b/docs/using/recipes.md @@ -29,7 +29,7 @@ Create a new Dockerfile like the one shown below. ```dockerfile # Start from a core stack version -FROM jupyter/datascience-notebook:2023-06-01 +FROM jupyter/datascience-notebook:2023-07-25 # Install in the default python3 environment RUN pip install --no-cache-dir 'flake8==3.9.2' && \ fix-permissions "${CONDA_DIR}" && \ @@ -48,7 +48,7 @@ Next, create a new Dockerfile like the one shown below. ```dockerfile # Start from a core stack version -FROM jupyter/datascience-notebook:2023-06-01 +FROM jupyter/datascience-notebook:2023-07-25 # Install from the requirements.txt file COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/ RUN pip install --no-cache-dir --requirement /tmp/requirements.txt && \ @@ -60,7 +60,7 @@ For conda, the Dockerfile is similar: ```dockerfile # Start from a core stack version -FROM jupyter/datascience-notebook:2023-06-01 +FROM jupyter/datascience-notebook:2023-07-25 # Install from the requirements.txt file COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/ RUN mamba install --yes --file /tmp/requirements.txt && \ @@ -283,7 +283,7 @@ To use a specific version of JupyterHub, the version of `jupyterhub` in your ima version in the Hub itself. ```dockerfile -FROM jupyter/base-notebook:2023-06-01 +FROM jupyter/base-notebook:2023-07-25 RUN pip install --no-cache-dir jupyterhub==1.4.1 && \ fix-permissions "${CONDA_DIR}" && \ fix-permissions "/home/${NB_USER}" @@ -474,7 +474,7 @@ For JupyterLab: ```bash docker run -it --rm \ - jupyter/base-notebook:2023-06-01 \ + jupyter/base-notebook:2023-07-25 \ start.sh jupyter lab --LabApp.token='' ``` @@ -482,7 +482,7 @@ For jupyter classic: ```bash docker run -it --rm \ - jupyter/base-notebook:2023-06-01 \ + jupyter/base-notebook:2023-07-25 \ start.sh jupyter notebook --NotebookApp.token='' ``` @@ -575,7 +575,7 @@ The example below is a Dockerfile to install the [ijavascript kernel](https://gi ```dockerfile # use one of the Jupyter Docker Stacks images -FROM jupyter/scipy-notebook:2023-06-01 +FROM jupyter/scipy-notebook:2023-07-25 # install ijavascript RUN npm install -g ijavascript diff --git a/docs/using/running.md b/docs/using/running.md index 1f330b540e..125b5f025e 100644 --- a/docs/using/running.md +++ b/docs/using/running.md @@ -15,12 +15,12 @@ The following are some common patterns. **Example 1:** -This command pulls the `jupyter/scipy-notebook` image tagged `2023-06-01` from Docker Hub if it is not already present on the local host. +This command pulls the `jupyter/scipy-notebook` image tagged `2023-07-25` from Docker Hub if it is not already present on the local host. It then starts a container running a Jupyter Notebook server and exposes the server on host port 8888. The server logs appear in the terminal and include a URL to the notebook server. ```bash -docker run -it -p 8888:8888 jupyter/scipy-notebook:2023-06-01 +docker run -it -p 8888:8888 jupyter/scipy-notebook:2023-07-25 # Entered start.sh with args: jupyter lab @@ -39,7 +39,7 @@ Pressing `Ctrl-C` twice shuts down the notebook server but leaves the container # list containers docker ps --all # CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES -# 221331c047c4 jupyter/scipy-notebook:2023-06-01 "tini -g -- start-no…" 11 seconds ago Exited (0) 8 seconds ago cranky_benz +# 221331c047c4 jupyter/scipy-notebook:2023-07-25 "tini -g -- start-no…" 11 seconds ago Exited (0) 8 seconds ago cranky_benz # start the stopped container docker start --attach 221331c047c4 @@ -53,12 +53,12 @@ docker rm 221331c047c4 **Example 2:** -This command pulls the `jupyter/r-notebook` image tagged `2023-06-01` from Docker Hub if it is not already present on the local host. +This command pulls the `jupyter/r-notebook` image tagged `2023-07-25` from Docker Hub if it is not already present on the local host. It then starts a container running a Jupyter Notebook server and exposes the server on host port 10000. The server logs appear in the terminal and include a URL to the notebook server, but with the internal container port (8888) instead of the correct host port (10000). ```bash -docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/r-notebook:2023-06-01 +docker run -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work jupyter/r-notebook:2023-07-25 ``` Pressing `Ctrl-C` twice shuts down the notebook server and immediately destroys the Docker container. @@ -130,7 +130,7 @@ subuidSize=$(( $(podman info --format "{{ range .Host.IDMappings.UIDMap }}+{{.Si subgidSize=$(( $(podman info --format "{{ range .Host.IDMappings.GIDMap }}+{{.Size }}{{end }}" ) - 1 )) ``` -This command pulls the `docker.io/jupyter/r-notebook` image tagged `2023-06-01` from Docker Hub if it is not already present on the local host. +This command pulls the `docker.io/jupyter/r-notebook` image tagged `2023-07-25` from Docker Hub if it is not already present on the local host. It then starts a container running a Jupyter Server and exposes the server on host port 10000. The server logs appear in the terminal and include a URL to the notebook server, but with the internal container port (8888) instead of the correct host port (10000). @@ -139,7 +139,7 @@ podman run -it --rm -p 10000:8888 \ -v "${PWD}":/home/jovyan/work --user $uid:$gid \ --uidmap $uid:0:1 --uidmap 0:1:$uid --uidmap $(($uid+1)):$(($uid+1)):$(($subuidSize-$uid)) \ --gidmap $gid:0:1 --gidmap 0:1:$gid --gidmap $(($gid+1)):$(($gid+1)):$(($subgidSize-$gid)) \ - docker.io/jupyter/r-notebook:2023-06-01 + docker.io/jupyter/r-notebook:2023-07-25 ``` ```{warning} diff --git a/examples/docker-compose/README.md b/examples/docker-compose/README.md index b2ea9efbf7..5846aa7d85 100644 --- a/examples/docker-compose/README.md +++ b/examples/docker-compose/README.md @@ -42,7 +42,7 @@ You can customize the docker-stack notebook image to deploy by modifying the `no For example, you can build and deploy a `jupyter/all-spark-notebook` by modifying the Dockerfile like so: ```dockerfile -FROM jupyter/all-spark-notebook:2023-06-01 +FROM jupyter/all-spark-notebook:2023-07-25 # Your RUN commands and so on ``` diff --git a/examples/docker-compose/notebook/Dockerfile b/examples/docker-compose/notebook/Dockerfile index 6e2668ccf8..07846faa91 100644 --- a/examples/docker-compose/notebook/Dockerfile +++ b/examples/docker-compose/notebook/Dockerfile @@ -2,7 +2,7 @@ # Distributed under the terms of the Modified BSD License. # Pick your favorite docker-stacks image -FROM jupyter/minimal-notebook:2023-06-01 +FROM jupyter/minimal-notebook:2023-07-25 USER root diff --git a/examples/make-deploy/Dockerfile b/examples/make-deploy/Dockerfile index 6e2668ccf8..07846faa91 100644 --- a/examples/make-deploy/Dockerfile +++ b/examples/make-deploy/Dockerfile @@ -2,7 +2,7 @@ # Distributed under the terms of the Modified BSD License. # Pick your favorite docker-stacks image -FROM jupyter/minimal-notebook:2023-06-01 +FROM jupyter/minimal-notebook:2023-07-25 USER root