Skip to content

Commit 41e45bd

Browse files
committed
Don't install libvirt-libs in baremetal container image
1 parent 667c07e commit 41e45bd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

images/baremetal/Dockerfile.ci

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
11
# This Dockerfile is a used by CI to publish an installer image
22
# It builds an image containing openshift-install.
33

4-
ARG libvirt_version="8.0.0"
5-
64
FROM registry.ci.openshift.org/ocp/4.16:installer-terraform-providers AS providers
75

86
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.21-openshift-4.16 AS builder
9-
ARG libvirt_version
107
ARG TAGS="libvirt baremetal"
11-
RUN dnf install -y libvirt-devel-$libvirt_version && \
12-
dnf clean all && rm -rf /var/cache/yum/*
138
WORKDIR /go/src/github.com/openshift/installer
149
COPY . .
1510
COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/
1611
RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
1712

1813

1914
FROM registry.ci.openshift.org/ocp/4.16:base
20-
ARG libvirt_version
2115
COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install
2216

2317
RUN dnf upgrade -y && \
2418
dnf install --setopt=tsflags=nodocs -y \
25-
libvirt-libs-$libvirt_version openssl unzip jq openssh-clients && \
19+
openssl unzip jq openssh-clients && \
2620
dnf clean all && rm -rf /var/cache/yum/*
2721

2822
RUN mkdir /output && chown 1000:1000 /output

0 commit comments

Comments
 (0)