test: make hub container self contained

Instead of building on the existing quay.io/osbuild/koji:v1, and
then replacing a lot of it (entry point), move the packages and
the dnf.conf change over from the former base and then directly
depend on Fedora. This gives us more control, especially over
what Fedora version is being used.
This commit is contained in:
Christian Kellner 2020-11-19 09:53:03 +01:00 committed by Tom Gundersen
parent 16f762c2ed
commit d60dd9f362

View file

@ -1,11 +1,17 @@
FROM quay.io/osbuild/koji:v1
FROM docker.io/library/fedora:latest
# 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 \
koji-web \
postgresql \
mod_ssl \
python3-jsonschema \
&& dnf clean all