Skip to content

Commit

Permalink
[ci] upgrade manylinux image (#46361)
Browse files Browse the repository at this point in the history
Upgrade manylinux image to see if it fixes the mirrolist.centoos
deprecated issue

Test:
- CI

Signed-off-by: can <[email protected]>
  • Loading branch information
can-anyscale authored Jul 1, 2024
1 parent 8462450 commit db2288c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
20 changes: 18 additions & 2 deletions ci/docker/manylinux.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1.3-labs

ARG HOSTTYPE
FROM quay.io/pypa/manylinux2014_${HOSTTYPE}:2023-11-13-f6b0c51
FROM quay.io/pypa/manylinux2014_${HOSTTYPE}:2024-07-01-8dac23b

ARG BUILDKITE_BAZEL_CACHE_URL

Expand All @@ -10,4 +10,20 @@ ENV RAY_INSTALL_JAVA=1
ENV BUILDKITE_BAZEL_CACHE_URL=$BUILDKITE_BAZEL_CACHE_URL

COPY ci/build/build-manylinux-forge.sh /tmp/build-manylinux-forge.sh
RUN /tmp/build-manylinux-forge.sh

RUN <<EOF
#!/bin/bash

# Centos 7 is EOL and is no longer available from the usual mirrors, so switch
# to https://vault.centos.org
sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf
sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo
sed -i 's;^.*baseurl=http://mirror;baseurl=https://vault;g' /etc/yum.repos.d/*.repo
if [ "${HOSTTYPE}" == "aarch64" ]; then
sed -i 's;/centos/7/;/altarch/7/;g' /etc/yum.repos.d/*.repo
fi

./tmp/build-manylinux-forge.sh

EOF

2 changes: 1 addition & 1 deletion ci/docker/manylinux.aarch64.wanda.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "manylinux-aarch64"
froms:
- quay.io/pypa/manylinux2014_aarch64:2023-11-13-f6b0c51
- quay.io/pypa/manylinux2014_aarch64:2024-07-01-8dac23b
srcs:
- ci/build/build-manylinux-forge.sh
build_args:
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/manylinux.wanda.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "manylinux"
froms:
- quay.io/pypa/manylinux2014_x86_64:2023-11-13-f6b0c51
- quay.io/pypa/manylinux2014_x86_64:2024-07-01-8dac23b
srcs:
- ci/build/build-manylinux-forge.sh
build_args:
Expand Down

0 comments on commit db2288c

Please sign in to comment.