From e3dec3021dbca50054744e6bd53e28e0c0b21c06 Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Wed, 30 Aug 2023 19:41:27 +0200 Subject: [PATCH] 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..35d7d57 --- /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 python -m pip install archspec==0.1.4