From 1aac87eb7fa5228a1925d1b9310b01e5e68c4c39 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Sun, 9 Oct 2022 12:45:03 +0400 Subject: [PATCH] Build images with ubuntu-20.04 and python-3.7 (#1793) --- base-notebook/Dockerfile | 8 ++++---- tests/base-notebook/test_python.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/base-notebook/Dockerfile b/base-notebook/Dockerfile index 9a3a836b..7ab3ad21 100644 --- a/base-notebook/Dockerfile +++ b/base-notebook/Dockerfile @@ -1,9 +1,9 @@ # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. -# Ubuntu 22.04 (jammy) -# https://hub.docker.com/_/ubuntu/tags?page=1&name=jammy -ARG ROOT_CONTAINER=ubuntu:22.04 +# Ubuntu 20.04 (focal) +# https://hub.docker.com/_/ubuntu/tags?page=1&name=focal +ARG ROOT_CONTAINER=ubuntu:20.04 FROM $ROOT_CONTAINER @@ -85,7 +85,7 @@ RUN echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \ USER ${NB_UID} # Pin python version here, or set it to "default" -ARG PYTHON_VERSION=3.10 +ARG PYTHON_VERSION=3.7 # Setup work directory for backward-compatibility RUN mkdir "/home/${NB_USER}/work" && \ diff --git a/tests/base-notebook/test_python.py b/tests/base-notebook/test_python.py index 8a41bebc..afcaacc9 100644 --- a/tests/base-notebook/test_python.py +++ b/tests/base-notebook/test_python.py @@ -5,7 +5,7 @@ import logging from tests.conftest import TrackedContainer LOGGER = logging.getLogger(__name__) -EXPECTED_PYTHON_VERSION = "3.10" +EXPECTED_PYTHON_VERSION = "3.7" def test_python_version(container: TrackedContainer) -> None: