File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
images/docker-stacks-foundation Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 79
79
80
80
- name : Pull base ubuntu image 📥
81
81
if : inputs.parent-image == ''
82
- run : docker pull ubuntu:22 .04
82
+ run : docker pull ubuntu:24 .04
83
83
shell : bash
84
84
85
85
- name : Build image 🛠
Original file line number Diff line number Diff line change 36
36
37
37
38
38
build/% : DOCKER_BUILD_ARGS?=
39
- build/% : ROOT_CONTAINER?=ubuntu:22 .04
39
+ build/% : ROOT_CONTAINER?=ubuntu:24 .04
40
40
build/% : # # build the latest image for a stack using the system's architecture
41
41
docker build $(DOCKER_BUILD_ARGS ) --rm --force-rm --tag " $( REGISTRY) /$( OWNER) /$( notdir $@ ) :latest" " ./images/$( notdir $@ ) " --build-arg REGISTRY=" $( REGISTRY) " --build-arg OWNER=" $( OWNER) " --build-arg ROOT_CONTAINER=" $( ROOT_CONTAINER) "
42
42
@echo -n " Built image size: "
Original file line number Diff line number Diff line change 1
1
# Copyright (c) Jupyter Development Team.
2
2
# Distributed under the terms of the Modified BSD License.
3
3
4
- # Ubuntu 22 .04 (jammy )
5
- # https://hub.docker.com/_/ubuntu/tags?page=1&name=jammy
6
- ARG ROOT_CONTAINER=ubuntu:22 .04
4
+ # Ubuntu 24 .04 (noble )
5
+ # https://hub.docker.com/_/ubuntu/tags?page=1&name=noble
6
+ ARG ROOT_CONTAINER=ubuntu:24 .04
7
7
8
8
FROM $ROOT_CONTAINER
9
9
@@ -68,6 +68,12 @@ RUN sed -i 's/^#force_color_prompt=yes/force_color_prompt=yes/' /etc/skel/.bashr
68
68
# and docs: https://docs.conda.io/projects/conda/en/latest/dev-guide/deep-dives/activation.html
69
69
echo 'eval "$(conda shell.bash hook)"' >> /etc/skel/.bashrc
70
70
71
+ # Delete existing user with UID="${NB_UID}" if it exists
72
+ # hadolint ignore=SC2046
73
+ RUN if grep -q "${NB_UID}" /etc/passwd; then \
74
+ userdel --remove $(id -un "${NB_UID}" ); \
75
+ fi
76
+
71
77
# Create "${NB_USER}" user (`jovyan` by default) with UID="${NB_UID}" (`1000` by default) and in the 'users' group
72
78
# and make sure these dirs are writable by the `users` group.
73
79
RUN echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \
You can’t perform that action at this time.
0 commit comments