mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/boypt/openssh-rpms.git
synced 2026-09-20 08:03:38 +08:00
- 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
26 lines
947 B
Docker
26 lines
947 B
Docker
# Official: https://quay.io/repository/centos/centos?tab=tags
|
|
ARG VERSION_NUM="9"
|
|
FROM quay.io/centos/centos:stream$VERSION_NUM
|
|
ARG VERSION_NUM
|
|
LABEL Author="Rex Zhou <zrx879582094@gmail.com>"
|
|
|
|
WORKDIR /data
|
|
|
|
# Copy all files
|
|
COPY ./docker/ /data/docker/
|
|
|
|
# CentOS 8 stream had NO valid mirrors; modify_vault_source.sh rewrites the
|
|
# repo baseurls for .el8 (auto-detected via rpm --eval '%{?dist}').
|
|
RUN if [ "$VERSION_NUM" = "8" ]; then \
|
|
bash ./docker/modify_vault_source.sh && \
|
|
yum install -y perl 'dnf-command(config-manager)' && \
|
|
yum config-manager --set-enabled powertools; \
|
|
else \
|
|
bash /data/docker/modify_live_source.sh /etc/yum.repos.d/*.repo; \
|
|
fi && \
|
|
yum clean all && yum makecache && \
|
|
yum install -y wget autoconf automake gcc make perl rpm-build pam-devel krb5-devel zlib-devel openssl-devel systemd-devel e2fsprogs-devel && \
|
|
yum clean all
|
|
|
|
CMD ["./docker/docker_compile.sh"]
|