debian-koji-osbuild/test/container/hub/Dockerfile.rhel
Christian Kellner c826db38e7 test: match container version to host
Instead of just using the "latest" container everywhere, which will
change every time a new release is made, add a build argument to
specify the version and then match that version to the host in all
the build scripts. This will make it possible to use the tests for
gating, and ensure that we test the plugins on the OS version that
is targeted.
2020-11-19 11:22:54 +00:00

30 lines
796 B
Text

ARG version=latest
FROM registry.access.redhat.com/ubi8/ubi:$version
COPY container/rhel.repo /etc/yum.repos.d/
COPY container/brew.repo /etc/yum.repos.d/
# koji db schema is in docs, remove nodocs from from dnf config
RUN sed -i '/^tsflags=nodocs$/d' /etc/dnf/dnf.conf
RUN dnf -y upgrade \
&& dnf -y \
--setopt=fastestmirror=True \
--setopt=install_weak_deps=False \
install \
koji-hub \
postgresql \
mod_ssl \
koji-web \
python3-jsonschema \
&& dnf clean all
COPY container/hub/hub.conf /etc/koji-hub/hub.conf
COPY container/hub/ssl.conf /etc/httpd/conf.d/ssl.conf
COPY container/hub/run-hub.sh /app/run-hub.sh
COPY container/hub/web.conf /etc/kojiweb/web.conf
COPY container/hub/kojiweb.conf /etc/httpd/conf.d/kojiweb.conf
ENTRYPOINT /app/run-hub.sh