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.
This commit is contained in:
parent
d60dd9f362
commit
c826db38e7
5 changed files with 16 additions and 6 deletions
|
|
@ -12,9 +12,11 @@ fi
|
|||
source /etc/os-release
|
||||
|
||||
podman build \
|
||||
--build-arg version=${VERSION_ID} \
|
||||
-t koji.hub \
|
||||
-f ${TEST_PATH}/container/hub/Dockerfile.${ID} $TEST_PATH
|
||||
|
||||
podman build -t \
|
||||
koji.builder \
|
||||
podman build \
|
||||
--build-arg version=${VERSION_ID} \
|
||||
-t koji.builder \
|
||||
-f ${TEST_PATH}/container/builder/Dockerfile.${ID} $TEST_PATH
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
FROM docker.io/library/fedora:latest
|
||||
ARG version=latest
|
||||
|
||||
FROM docker.io/library/fedora:$version
|
||||
|
||||
RUN dnf -y upgrade \
|
||||
&& dnf -y \
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
FROM registry.access.redhat.com/ubi8/ubi:latest
|
||||
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/
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
FROM docker.io/library/fedora:latest
|
||||
ARG version=latest
|
||||
|
||||
FROM docker.io/library/fedora:$version
|
||||
|
||||
# koji db schema is in docs, remove nodocs from from dnf config
|
||||
RUN sed -i '/^tsflags=nodocs$/d' /etc/dnf/dnf.conf
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
FROM registry.access.redhat.com/ubi8/ubi:latest
|
||||
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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue