From c436975393a93c8e7009f5e447d8004b42463998 Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Wed, 30 Aug 2023 19:41:27 +0200 Subject: [PATCH 1/2] add recipe for Ubuntu 20.04 container with Python 2.7 --- .github/workflows/build-publish-containers.yml | 1 + ubuntu-20.04-python2/Dockerfile | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 ubuntu-20.04-python2/Dockerfile diff --git a/.github/workflows/build-publish-containers.yml b/.github/workflows/build-publish-containers.yml index f9d5bab..0df7d66 100644 --- a/.github/workflows/build-publish-containers.yml +++ b/.github/workflows/build-publish-containers.yml @@ -28,6 +28,7 @@ jobs: - almalinux-8.6 - almalinux-9.0 - ubuntu-20.04 + - ubuntu-20.04-python2 - ubuntu-22.04 fail-fast: false steps: diff --git a/ubuntu-20.04-python2/Dockerfile b/ubuntu-20.04-python2/Dockerfile new file mode 100644 index 0000000..ca6b350 --- /dev/null +++ b/ubuntu-20.04-python2/Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:20.04 +RUN useradd -ms /bin/bash easybuild +ENV DEBIAN_FRONTEND=noninteractive +RUN apt update \ +&& apt install -y curl python2 python-pip-whl \ +&& LMOD_VERSION=8.6.12 \ +&& curl -OL https://github.com/surak/Lmod/releases/download/${LMOD_VERSION}/lmod_${LMOD_VERSION}_all.deb \ +&& apt install -y ./lmod_${LMOD_VERSION}_all.deb +# debianutils provides 'which' command +RUN apt install -y bzip2 debianutils diffutils file gcc g++ git gzip libibverbs-dev openssl libssl-dev make patch sudo tar unzip xz-utils +RUN python2 -m pip install archspec==0.1.4 From 3c38ff33509da3226a1f541dcd6fd2a0b6c10bad Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Wed, 30 Aug 2023 21:44:09 +0200 Subject: [PATCH 2/2] install pip for Python 2 in Ubuntu 20.04 via get-pip.py --- ubuntu-20.04-python2/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ubuntu-20.04-python2/Dockerfile b/ubuntu-20.04-python2/Dockerfile index ca6b350..1ddc264 100644 --- a/ubuntu-20.04-python2/Dockerfile +++ b/ubuntu-20.04-python2/Dockerfile @@ -3,6 +3,8 @@ RUN useradd -ms /bin/bash easybuild ENV DEBIAN_FRONTEND=noninteractive RUN apt update \ && apt install -y curl python2 python-pip-whl \ +&& curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py \ +&& python2 get-pip.py \ && LMOD_VERSION=8.6.12 \ && curl -OL https://github.com/surak/Lmod/releases/download/${LMOD_VERSION}/lmod_${LMOD_VERSION}_all.deb \ && apt install -y ./lmod_${LMOD_VERSION}_all.deb