mirror of
https://github.com/d9pouces/id_configurator.git
synced 2026-11-09 01:47:21 +01:00
a5a36fc7cd
Signed-off-by: d9pouces <github@19pouces.net>
23 lines
1.0 KiB
Docker
23 lines
1.0 KiB
Docker
# Minimal YUM/DNF repository serving one hand-built RPM package over TLS,
|
|
# using the same Test CA as the pypi-repo/apt-repo fixtures, used by
|
|
# tox-docker to exercise the `yum` module integration test
|
|
# (tests/configs/Yum.yaml.j2, 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 repo-server.crt.pem /etc/nginx/certs/repo-server.crt.pem
|
|
COPY repo-server.key.pem /etc/nginx/certs/repo-server.key.pem
|
|
COPY yum-repo.nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 8443
|