gh-124612: Use ghcr.io/python/autoconf instead of public image (#124657)

* gh-124612: Use ghcr.io/python/autoconf instead of public image

* Update
This commit is contained in:
Donghee Na 2024-10-09 09:33:18 +09:00 committed by GitHub
parent 14b44c58e1
commit b502573f7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -5,12 +5,10 @@ set -e -x
# The check_generated_files job of .github/workflows/build.yml must kept in # The check_generated_files job of .github/workflows/build.yml must kept in
# sync with this script. Use the same container image than the job so the job # sync with this script. Use the same container image than the job so the job
# doesn't need to run autoreconf in a container. # doesn't need to run autoreconf in a container.
IMAGE="ubuntu:22.04" IMAGE="ghcr.io/python/autoconf:2024.10.06.11200919239"
DEPENDENCIES="autotools-dev autoconf autoconf-archive pkg-config"
AUTORECONF="autoreconf -ivf -Werror" AUTORECONF="autoreconf -ivf -Werror"
WORK_DIR="/src" WORK_DIR="/src"
SHELL_CMD="apt-get update && apt-get -yq install $DEPENDENCIES && cd $WORK_DIR && $AUTORECONF"
abs_srcdir=$(cd $(dirname $0)/../..; pwd) abs_srcdir=$(cd $(dirname $0)/../..; pwd)
@ -28,4 +26,4 @@ if command -v selinuxenabled >/dev/null && selinuxenabled; then
PATH_OPT=":Z" PATH_OPT=":Z"
fi fi
"$RUNTIME" run --rm -v "$abs_srcdir:$WORK_DIR$PATH_OPT" "$IMAGE" /usr/bin/bash -c "$SHELL_CMD" "$RUNTIME" run --rm -v "$abs_srcdir:$WORK_DIR$PATH_OPT" "$IMAGE"