File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,8 @@ RUN GOOS=linux GOARCH=amd64 go build -o ovirt-populator github.com/konveyor/fork
99
1010FROM registry.access.redhat.com/ubi8/ubi:8.10-1088
1111COPY --from=builder /app/ovirt-populator /usr/local/bin/ovirt-populator
12- RUN subscription-manager register --org $(cat "/activation-key/org" ) --activationkey $(cat "/activation-key/activationkey" )
13- RUN subscription-manager repos --enable=rhv-4-tools-for-rhel-8-x86_64-rpms
14- RUN dnf install -y python3-ovirt-engine-sdk4 ovirt-imageio-client && dnf clean all
12+ RUN subscription-manager refresh && \
13+ dnf install -y python3-ovirt-engine-sdk4 ovirt-imageio-client && dnf clean all
1514
1615ENTRYPOINT ["/usr/local/bin/ovirt-populator" ]
1716LABEL \
Original file line number Diff line number Diff line change @@ -2,11 +2,7 @@ FROM registry.access.redhat.com/ubi9:9.4-1214.1729773476 AS appliance
22
33ENV LIBGUESTFS_BACKEND direct
44
5- RUN subscription-manager register --org $(cat "/activation-key/org" ) --activationkey $(cat "/activation-key/activationkey" )
6-
7- RUN subscription-manager repos --enable=codeready-builder-for-rhel-9-x86_64-rhui-rpms
8-
9- RUN dnf update -y && \
5+ RUN subscription-manager refresh && \
106 dnf install -y --setopt=install_weak_deps=False \
117 qemu-img \
128 libguestfs-devel \
@@ -38,9 +34,8 @@ FROM registry.access.redhat.com/ubi9:9.4-1214.1729773476
3834# RUN mv /etc/pki/tls/certs/ca-bundle.crt /etc/pki/tls/certs/ca-bundle.crt.bak && \
3935# ln -sf /opt/ca-bundle.crt /etc/pki/tls/certs/ca-bundle.crt
4036
41- # RUN microdnf install -y subscription-manager
42- RUN subscription-manager register --org $(cat "/activation-key/org" ) --activationkey $(cat "/activation-key/activationkey" )
43- RUN mkdir /disks && \
37+ RUN subscription-manager refresh && \
38+ mkdir /disks && \
4439 source /etc/os-release && \
4540 dnf install -y \
4641 virt-v2v \
You can’t perform that action at this time.
0 commit comments