Skip to content

Commit

Permalink
Consolidate cos7 and alma8 docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Oct 16, 2024
1 parent adaefb4 commit b020d1b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 62 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,23 @@ jobs:
SHORT_DESCRIPTION: "conda-forge build image for Cent0S 8 on aarch64 with CUDA"

- DOCKERIMAGE: linux-anvil-alma-x86_64
DOCKERFILE: linux-anvil-alma
DOCKERFILE: linux-anvil-cos7
DOCKERTAG: "8"
DISTRO_ARCH: "amd64"
DISTRO_NAME: "almalinux"
DISTRO_VER: "8"
SHORT_DESCRIPTION: "conda-forge build image for Alma 8 on x86_64"

- DOCKERIMAGE: linux-anvil-alma-aarch64
DOCKERFILE: linux-anvil-alma
DOCKERFILE: linux-anvil-cos7
DOCKERTAG: "8"
DISTRO_ARCH: "arm64"
DISTRO_NAME: "almalinux"
DISTRO_VER: "8"
SHORT_DESCRIPTION: "conda-forge build image for Alma 8 on aarch64"

- DOCKERIMAGE: linux-anvil-alma-ppc64le
DOCKERFILE: linux-anvil-alma
DOCKERFILE: linux-anvil-cos7
DOCKERTAG: "8"
DISTRO_ARCH: "ppc64le"
DISTRO_NAME: "almalinux"
Expand Down
55 changes: 0 additions & 55 deletions linux-anvil-alma/Dockerfile

This file was deleted.

2 changes: 0 additions & 2 deletions linux-anvil-alma/entrypoint_source

This file was deleted.

8 changes: 6 additions & 2 deletions linux-anvil-cos7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,16 @@ RUN /opt/docker/bin/fix_rpm

# Install basic requirements.
COPY scripts/yum_clean_all /opt/docker/bin/
RUN yum update -y && \
RUN if [ "${DISTRO_NAME}${DISTRO_VER}" = "almalinux8" ]; then \
EXTRA_YUM_PKGS="glibc-minimal-langpack glibc-langpack-en" \
fi \
yum update -y && \
yum install -y \
bzip2 \
sudo \
tar \
which && \
which \
${EXTRA_YUM_PKGS:-} && \
/opt/docker/bin/yum_clean_all

# Run common commands
Expand Down
2 changes: 2 additions & 0 deletions scripts/fix_rpm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ if [[ "${DISTRO_NAME}${DISTRO_VER}" == "centos7" ]]; then
fi
elif [ "${DISTRO_NAME}${DISTRO_VER}" = "ubi8" ]; then
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
elif [ "${DISTRO_NAME}${DISTRO_VER}" = "almalinux8" ]; then
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
fi

rm -rf "/tmp/centos7-repos"

0 comments on commit b020d1b

Please sign in to comment.