feat: add new configuration files for Apt, Apk, Java, and Yum

Signed-off-by: d9pouces <github@19pouces.net>
This commit is contained in:
d9pouces
2026-09-04 22:53:35 +02:00
parent 6e086b0964
commit fc41dfaa07
17 changed files with 296 additions and 0 deletions
@@ -0,0 +1,20 @@
# Minimal YUM/DNF repository serving one hand-built RPM package over plain
# HTTP (gpgcheck is off in the test config, so no TLS/signing is needed),
# used by tox-docker to exercise the `yum` module integration test
# (tests/configs/Yum.yaml.tmpl, tests/dockerfiles/Yum.Dockerfile).
#
# Built by tox-docker, whose build context is this directory (not the repo
# root) - every COPY source below must live under tests/dockerfiles/repos/.
FROM rockylinux:9 AS packagebuild
RUN dnf install -y --setopt=install_weak_deps=False rpm-build createrepo_c \
&& dnf clean all
RUN mkdir -p /build/SPECS /srv
COPY idconfiguratortestpkg.rpmspec /build/SPECS/idconfiguratortestpkg.spec
RUN rpmbuild --define "_topdir /build" -bb /build/SPECS/idconfiguratortestpkg.spec \
&& cp /build/RPMS/noarch/*.rpm /srv/
RUN createrepo_c /srv
FROM nginx:alpine
COPY --from=packagebuild /srv /srv
COPY yum-repo.nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8443