Skip to content

Commit 9d052da

Browse files
committed
Add latest win-virtio
Signed-off-by: Martin Necas <mnecas@redhat.com>
1 parent 739cb7e commit 9d052da

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

build/virt-v2v/Containerfile-upstream

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o image-converter ./cmd/i
1010
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o virt-v2v-wrapper ./cmd/virt-v2v/entrypoint.go
1111

1212
# Main container
13-
FROM quay.io/centos/centos:stream9-minimal
13+
FROM quay.io/centos/centos:stream9
1414
RUN rm /etc/pki/tls/fips_local.cnf && \
1515
echo -e '[fips_sect]\ntls1-prf-ems-check = 0\nactivate = 1' > /etc/pki/tls/fips_local.cnf && \
1616
sed -i '/^\\[ crypto_policy \\]/a Options=RHNoEnforceEMSinFIPS' /etc/pki/tls/openssl.cnf
@@ -19,13 +19,14 @@ ENV LIBGUESTFS_BACKEND=direct LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
1919

2020
RUN mkdir /disks && \
2121
source /etc/os-release && \
22-
microdnf install -y \
23-
virt-v2v \
24-
virtio-win && \
25-
microdnf clean all
22+
dnf install -y \
23+
virt-v2v && \
24+
dnf clean all
2625

27-
RUN ( [ "$(rpm -q glibc)" == "glibc-2.34-66.el9.x86_64" ] && microdnf -y downgrade glibc-2.34-65.el9.x86_64 || true ) && \
28-
microdnf -y install libguestfs libguestfs-appliance libguestfs-xfs libguestfs-winsupport qemu-img supermin && \
26+
RUN dnf install -y https://kojihub.stream.centos.org/kojifiles/packages/virtio-win/1.9.40/1.el9/noarch/virtio-win-1.9.40-1.el9.noarch.rpm
27+
28+
RUN ( [ "$(rpm -q glibc)" == "glibc-2.34-66.el9.x86_64" ] && dnf -y downgrade glibc-2.34-65.el9.x86_64 || true ) && \
29+
dnf -y install libguestfs libguestfs-appliance libguestfs-xfs libguestfs-winsupport qemu-img supermin && \
2930
depmod $(ls /lib/modules/ |tail -n1)
3031

3132
# Create tarball for the appliance.

0 commit comments

Comments
 (0)