Skip to content

Commit

Permalink
Add new images for various operating systems (#6)
Browse files Browse the repository at this point in the history
Adds support for:
 - CentOS 7
 - Alma Linux 8
 - OpenSUSE Leap 15
 - Fedora 36
  • Loading branch information
blue42u authored Sep 6, 2022
1 parent 0594cc4 commit d0fb9ec
Show file tree
Hide file tree
Showing 5 changed files with 231 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ jobs:
matrix:
dockerfile: [[e4s-ubuntu-18.04, e4s-ubuntu-18.04.dockerfile, 'linux/amd64,linux/ppc64le,linux/arm64'],
[e4s-ubuntu-20.04, e4s-ubuntu-20.04.dockerfile, 'linux/amd64,linux/ppc64le,linux/arm64'],
[e4s-amazonlinux-2, e4s-amazonlinux-2.dockerfile, 'linux/amd64,linux/arm64']]
[e4s-amazonlinux-2, e4s-amazonlinux-2.dockerfile, 'linux/amd64,linux/arm64'],
[e4s-leap-15, e4s-leap-15.dockerfile, 'linux/amd64'],
[e4s-almalinux-8, e4s-almalinux-8.dockerfile, 'linux/amd64,linux/ppc64le,linux/arm64'],
[e4s-centos-7, e4s-centos-7.dockerfile, 'linux/amd64'],
[e4s-fedora-36, e4s-fedora-36.dockerfile, 'linux/amd64,linux/ppc64le,linux/arm64']]
name: Build ${{ matrix.dockerfile[0] }}
steps:
- name: Checkout
Expand Down
56 changes: 56 additions & 0 deletions Dockerfiles/e4s-almalinux-8.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
FROM quay.io/almalinux/8-base:8

RUN yum update -y \
&& yum install -y epel-release \
&& yum update -y \
&& yum install -y \
autoconf \
automake \
bzip2 \
cpio \
curl \
file \
findutils \
gcc \
gcc-c++ \
gcc-gfortran \
gettext \
git \
gpg \
iputils \
jq \
libffi-devel \
glibc-locale-source \
m4 \
make \
mercurial \
mlocate \
ncurses-devel \
openssl-devel \
patch \
patchelf \
pciutils \
python3-devel \
python3-pip \
rsync \
tar \
unzip \
wget \
which \
xz \
zlib-devel \
&& localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& yum clean all \
&& rm -rf /var/cache/yum/*

RUN python3 -m pip install --upgrade pip setuptools wheel \
&& python3 -m pip install gnureadline 'boto3<=1.20.35' 'botocore<=1.23.46' pyyaml pytz minio requests clingo \
&& rm -rf ~/.cache

CMD ["/bin/bash"]

ENV NVIDIA_VISIBLE_DEVICES=all \
NVIDIA_DRIVER_CAPABILITIES=compute,utility \
LANGUAGE=en_US:en \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8
66 changes: 66 additions & 0 deletions Dockerfiles/e4s-centos-7.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
FROM quay.io/centos/centos:7

RUN yum update -y \
&& yum install -y epel-release centos-release-scl \
&& yum update -y \
&& yum install -y \
autoconf \
automake \
bzip2 \
cpio \
curl \
devtoolset-8-gcc \
devtoolset-8-gcc-c++ \
devtoolset-8-gcc-gfortran \
file \
findutils \
gettext \
git \
glibc-locale-source \
gpg \
iputils \
jq \
libffi-devel \
m4 \
make \
mercurial \
mlocate \
ncurses-devel \
openssl-devel \
patch \
patchelf \
pciutils \
python3-devel \
python3-pip \
rsync \
subversion \
tar \
unzip \
wget \
which \
xz \
zlib-devel \
zstd \
&& localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& yum clean all \
&& rm -rf /var/cache/yum/*

RUN python3 -m pip install --upgrade pip setuptools wheel \
&& python3 -m pip install gnureadline 'boto3<=1.20.35' 'botocore<=1.23.46' pyyaml pytz minio requests clingo \
&& rm -rf ~/.cache

CMD ["/bin/bash"]

ENV NVIDIA_VISIBLE_DEVICES=all \
NVIDIA_DRIVER_CAPABILITIES=compute,utility \
LANGUAGE=en_US:en \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
PATH=/opt/rh/devtoolset-8/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
LD_LIBRARY_PATH=/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:/opt/rh/devtoolset-8/root/usr/lib64/dyninst:/opt/rh/devtoolset-8/root/usr/lib/dyninst \
PKG_CONFIG_PATH=/opt/rh/devtoolset-8/root/usr/lib64/pkgconfig \
PYTHONPATH=/opt/rh/devtoolset-8/root/usr/lib64/python2.7/site-packages:/opt/rh/devtoolset-8/root/usr/lib/python2.7/site-packages \
PERL5LIB=/opt/rh/devtoolset-8/root//usr/lib64/perl5/vendor_perl:/opt/rh/devtoolset-8/root/usr/lib/perl5:/opt/rh/devtoolset-8/root//usr/share/perl5/vendor_perl \
PCP_DIR=/opt/rh/devtoolset-8/root \
MANPATH=/opt/rh/devtoolset-8/root/usr/share/man \
INFOPATH=/opt/rh/devtoolset-8/root/usr/share/info
54 changes: 54 additions & 0 deletions Dockerfiles/e4s-fedora-36.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
FROM registry.fedoraproject.org/fedora:36

RUN yum update -y \
&& yum install -y \
autoconf \
automake \
bzip2 \
cpio \
curl \
file \
findutils \
gcc \
gcc-c++ \
gcc-gfortran \
gettext \
git \
gpg \
iputils \
jq \
libffi-devel \
glibc-locale-source \
m4 \
make \
mercurial \
mlocate \
ncurses-devel \
openssl-devel \
patch \
patchelf \
pciutils \
python3-devel \
python3-pip \
rsync \
tar \
unzip \
wget \
which \
xz \
zlib-devel \
&& localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& yum clean all \
&& rm -rf /var/cache/yum/*

RUN python3 -m pip install --upgrade pip setuptools wheel \
&& python3 -m pip install gnureadline 'boto3<=1.20.35' 'botocore<=1.23.46' pyyaml pytz minio requests clingo \
&& rm -rf ~/.cache

CMD ["/bin/bash"]

ENV NVIDIA_VISIBLE_DEVICES=all \
NVIDIA_DRIVER_CAPABILITIES=compute,utility \
LANGUAGE=en_US:en \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8
50 changes: 50 additions & 0 deletions Dockerfiles/e4s-leap-15.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
FROM registry.opensuse.org/opensuse/leap:15

ENV TZ=America/Los_Angeles

RUN zypper ref \
&& zypper up -y \
&& zypper in -y \
autoconf \
automake \
bzip2 \
curl \
file \
findutils \
gcc \
gcc-c++ \
gcc-fortran \
git \
gzip \
jq \
libffi-devel \
libopenssl-devel \
libxml2-devel \
m4 \
make \
mercurial \
ncurses-devel \
patch \
patchelf \
pciutils \
python3-pip \
rsync \
tar \
unzip \
wget \
xz \
zlib-devel \
&& zypper clean

RUN python3 -m pip install --upgrade pip setuptools wheel \
&& python3 -m pip install gnureadline 'boto3<=1.20.35' 'botocore<=1.23.46' pyyaml pytz minio requests clingo \
&& rm -rf ~/.cache

CMD ["/bin/bash"]

ENV NVIDIA_VISIBLE_DEVICES=all \
NVIDIA_DRIVER_CAPABILITIES=compute,utility \
LANGUAGE=en_US:en \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8

0 comments on commit d0fb9ec

Please sign in to comment.