mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/boypt/openssh-rpms.git
synced 2026-09-20 08:03:38 +08:00
refactor(docker): rename to modify_vault/live_source and unify to bash
- git mv modify_yum_source.sh -> modify_vault_source.sh (vault: EL5/6/7/8) - git mv modify_dnf_source.pl -> modify_live_source.sh and rewrite perl logic in bash (LIVE_MIRRORS array official-first: mirror.stream.centos.org, mirrors.kernel.org/centos, aliyun/ustc/iij/yandex; bash -n clean) - update Dockerfile.centos/centos5 to call modify_vault_source.sh - update Dockerfile.centos-stream EL8 to call modify_vault_source.sh and EL9 to call modify_live_source.sh via bash (drop perl dep for Stream 9) - AGENTS.md: update vault script reference
This commit is contained in:
@@ -4,7 +4,7 @@ WORKDIR /data
|
||||
COPY ./docker/*.sh /data/docker/
|
||||
COPY ./downloads/perl* /data/
|
||||
|
||||
RUN bash ./docker/modify_yum_source.sh && \
|
||||
RUN bash ./docker/modify_vault_source.sh && \
|
||||
yum install -y gcc44 make
|
||||
|
||||
RUN mkdir -p perl && tar xfz perl-*.tar.gz --strip-components=1 -C perl && pushd perl && \
|
||||
@@ -19,7 +19,7 @@ WORKDIR /data
|
||||
COPY --from=builder /usr/local/perl /usr/local/perl
|
||||
COPY ./docker/*.sh /data/docker/
|
||||
|
||||
RUN bash ./docker/modify_yum_source.sh && \
|
||||
RUN bash ./docker/modify_vault_source.sh && \
|
||||
yum install -y gcc44 autoconf automake make rpm-build setarch pam-devel krb5-devel zlib-devel && \
|
||||
sed 's|]$|-i386]|;s|\$basearch|i386|g' /etc/yum.repos.d/CentOS-Base.repo > /etc/yum.repos.d/CentOS-Base-i386.repo && \
|
||||
yum makecache && \
|
||||
|
||||
Reference in New Issue
Block a user