docker/Dockerfile aktualisiert
This commit is contained in:
+21
-21
@@ -1,30 +1,30 @@
|
||||
FROM almalinux:10
|
||||
|
||||
# dnf-plugins-core -> "dnf download"
|
||||
# createrepo_c -> createrepo_c + modifyrepo_c
|
||||
# rpm-sign -> rpmsign/rpmkeys (verify upstream sigs, re-sign with our key)
|
||||
# gnupg2 -> gpg (generates/holds the mirror's own signing key)
|
||||
# python3-pyyaml -> YAML parsing in sync_helpers.py
|
||||
# git -> pulling the sources.yaml from a git repo (optional)
|
||||
# curl -> fetching upstream gpgkeys
|
||||
# createrepo_c bringt auch modifyrepo_c mit.
|
||||
# libappstream-glib liefert appstreamcli fuer die optionale Validierung.
|
||||
RUN dnf -y install \
|
||||
dnf-plugins-core \
|
||||
createrepo_c \
|
||||
rpm-sign \
|
||||
gnupg2 \
|
||||
python3-pyyaml \
|
||||
dnf-plugins-core \
|
||||
git \
|
||||
curl \
|
||||
openssh-clients \
|
||||
python3 \
|
||||
python3-pyyaml \
|
||||
jq \
|
||||
cronie \
|
||||
appstream \
|
||||
&& dnf clean all
|
||||
|
||||
WORKDIR /opt/rpm-mirror
|
||||
# yq (Go-Variante) fuer das YAML-Parsing in sync.sh
|
||||
ARG YQ_VERSION=v4.44.3
|
||||
RUN curl -fsSL -o /usr/local/bin/yq \
|
||||
"https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" \
|
||||
&& chmod +x /usr/local/bin/yq
|
||||
|
||||
COPY sync.sh sync_helpers.py /opt/rpm-mirror/
|
||||
RUN chmod +x /opt/rpm-mirror/sync.sh
|
||||
COPY sync.sh /usr/local/bin/sync.sh
|
||||
COPY appstream-gen.py /usr/local/bin/appstream-gen.py
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/sync.sh \
|
||||
/usr/local/bin/appstream-gen.py \
|
||||
/usr/local/bin/entrypoint.sh
|
||||
|
||||
COPY docker/syncer/entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
# sync.sh needs root to write /etc/yum.repos.d/*.repo - default container
|
||||
# user is root, don't change it.
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user