From ccb25e4bd657c425a982fcde28e0dc0ed22db405 Mon Sep 17 00:00:00 2001 From: Al Rigazzi Date: Tue, 20 Feb 2024 20:48:02 +0100 Subject: [PATCH] Update tutorial containers (#496) This PR bumps up the Python version used when building the tutorial containers (both production and development) to avoid module incompatibility. A minor bug in the tutorial container version number is also addressed as part of this PR. [ committed by @al-rigazzi ] [ reviewed by @MattToast ] --- docker-compose.yml | 2 +- docker/dev/Dockerfile | 4 ++-- docker/prod/Dockerfile | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f69743f14..466ee68c9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: - "8888:8888" tutorials-prod: - image: smartsim-tutorials:v0.6.1 + image: smartsim-tutorials:v0.6.2 build: context: . dockerfile: ./docker/prod/Dockerfile diff --git a/docker/dev/Dockerfile b/docker/dev/Dockerfile index c643787c3..877fcc821 100644 --- a/docker/dev/Dockerfile +++ b/docker/dev/Dockerfile @@ -36,9 +36,9 @@ RUN useradd --system --create-home --shell /bin/bash -g root -G sudo craylabs && apt-get update \ && apt-get install --no-install-recommends -y build-essential \ git gcc make git-lfs wget libopenmpi-dev openmpi-bin unzip \ - python3-pip python3 python3-dev cmake \ + python3-pip python3.9 python3.9-dev cmake \ && rm -rf /var/lib/apt/lists/* \ - && ln -s /usr/bin/python3 /usr/bin/python + && ln -s /usr/bin/python3.9 /usr/bin/python WORKDIR /home/craylabs RUN git clone https://github.com/CrayLabs/SmartRedis.git --branch develop --depth=1 smartredis \ diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile index 769378aef..081b2aa72 100644 --- a/docker/prod/Dockerfile +++ b/docker/prod/Dockerfile @@ -36,9 +36,9 @@ RUN useradd --system --create-home --shell /bin/bash -g root -G sudo craylabs && apt-get update \ && apt-get install --no-install-recommends -y build-essential \ git gcc make git-lfs wget libopenmpi-dev openmpi-bin unzip \ - python3-pip python3 python3-dev cmake \ + python3.9 python3.9-dev python3-pip cmake \ && rm -rf /var/lib/apt/lists/* \ - && ln -s /usr/bin/python3 /usr/bin/python + && ln -s /usr/bin/python3.9 /usr/bin/python WORKDIR /home/craylabs COPY --chown=craylabs:root ./tutorials/ /home/craylabs/tutorials/