Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Oct 16, 2024
1 parent df5a83c commit 222a412
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ jobs:
matrix:
cfg:
- DOCKERIMAGE: linux-anvil-cos7-x86_64
DOCKERFILE: linux-anvil-cos7
DOCKERFILE: linux-anvil
DOCKERTAG: latest
DISTRO_ARCH: "amd64"
DISTRO_NAME: "centos"
DISTRO_VER: "7"
SHORT_DESCRIPTION: "conda-forge build image for Cent0S 7 on x86_64"

- DOCKERIMAGE: linux-anvil-ppc64le
DOCKERFILE: linux-anvil-cos7
DOCKERFILE: linux-anvil
DOCKERTAG: latest
DISTRO_ARCH: "ppc64le"
DISTRO_NAME: "centos"
DISTRO_VER: "7"
SHORT_DESCRIPTION: "conda-forge build image for Cent0S 7 on ppc64le"

- DOCKERIMAGE: linux-anvil-aarch64
DOCKERFILE: linux-anvil-cos7
DOCKERFILE: linux-anvil
DOCKERTAG: latest
DISTRO_ARCH: "arm64"
DISTRO_NAME: "centos"
Expand Down 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-cos7
DOCKERFILE: linux-anvil
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-cos7
DOCKERFILE: linux-anvil
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-cos7
DOCKERFILE: linux-anvil
DOCKERTAG: "8"
DISTRO_ARCH: "ppc64le"
DISTRO_NAME: "almalinux"
Expand Down
2 changes: 1 addition & 1 deletion linux-anvil-cos7/Dockerfile → linux-anvil/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN if [ "${DISTRO_ARCH}" = "arm64" ] && [ "${DISTRO_NAME}${DISTRO_VER}" = "cent
fi

# Add the archived repo URL and fix RPM imports
ADD centos7-repos /tmp/centos7-repos
ADD rpm-repos /tmp/rpm-repos
ADD scripts/fix_rpm /opt/docker/bin/fix_rpm
RUN /opt/docker/bin/fix_rpm

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/fix_rpm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -exo pipefail
if [[ "${DISTRO_NAME}${DISTRO_VER}" == "centos7" ]]; then
# Disable outdated repos; use vault instead
sed -i '/^enabled=/d; /^\[/a\enabled=0' /etc/yum.repos.d/CentOS-Base.repo
cp "/tmp/centos7-repos/centos7-$(uname -m)-vault.repo" /etc/yum.repos.d/vault.repo
cp "/tmp/rpm-repos/centos7-$(uname -m)-vault.repo" /etc/yum.repos.d/vault.repo

# Resolves a nasty NOKEY warning that appears when using yum.
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Expand All @@ -20,4 +20,4 @@ elif [ "${DISTRO_NAME}${DISTRO_VER}" = "almalinux8" ]; then
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
fi

rm -rf "/tmp/centos7-repos"
rm -rf "/tmp/rpm-repos"

0 comments on commit 222a412

Please sign in to comment.