From 89eddc71c2999708ef7336a56e8b2b8af0025610 Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Sun, 2 Mar 2025 16:19:17 +0100 Subject: [PATCH] add container for Ubuntu 20.04 w/ Python 3.6 --- .github/workflows/build-publish-containers.yml | 1 + README.md | 1 + ubuntu-20.04-python36/Dockerfile | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 ubuntu-20.04-python36/Dockerfile diff --git a/.github/workflows/build-publish-containers.yml b/.github/workflows/build-publish-containers.yml index 3c9d038..d092196 100644 --- a/.github/workflows/build-publish-containers.yml +++ b/.github/workflows/build-publish-containers.yml @@ -22,6 +22,7 @@ jobs: - almalinux-9.5 - ubuntu-20.04 - ubuntu-20.04-python2 + - ubuntu-20.04-python36 - ubuntu-22.04 - ubuntu-24.04 fail-fast: false diff --git a/README.md b/README.md index 1ce7f81..a2a472a 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Containers for testing EasyBuild, built automatically for `x86_64` and `aarch64` * `rockylinux-8.10`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/rockylinux-8.10/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/rockylinux-8.10) * `rockylinux-9.5`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/rockylinux-9.5/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/rockylinux-9.5) * `ubuntu-20.04`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/ubuntu-20.04/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/ubuntu-20.04) +* `ubuntu-20.04-python36`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/ubuntu-20.04-python36/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/ubuntu-20.04-python36) * `ubuntu-20.04-python2`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/ubuntu-20.04-python2/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/ubuntu-20.04-python2) * `ubuntu-22.04`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/ubuntu-22.04/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/ubuntu-22.04) * `ubuntu-24.04`: [recipe](https://github.com/easybuilders/easybuild-containers/blob/main/ubuntu-24.04/Dockerfile), [image @ ghcr.io](https://github.com/easybuilders/easybuild-containers/pkgs/container/ubuntu-24.04) diff --git a/ubuntu-20.04-python36/Dockerfile b/ubuntu-20.04-python36/Dockerfile new file mode 100644 index 0000000..21da425 --- /dev/null +++ b/ubuntu-20.04-python36/Dockerfile @@ -0,0 +1,14 @@ +FROM ubuntu:20.04 +RUN useradd -ms /bin/bash easybuild +ENV DEBIAN_FRONTEND=noninteractive +RUN apt update -y \ +&& apt install -y software-properties-common \ +&& add-apt-repository ppa:deadsnakes/ppa \ +&& apt update -y \ +&& apt install -y curl python3.6 python3.6-distutils python3-pip \ +&& LMOD_VERSION=8.7.53 \ +&& 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 python3.6 -m pip install archspec