Skip to content

Commit 715503a

Browse files
committed
WIP: Use yum install instead of yum update
Test ./images/openstack/Dockerfile.ci
1 parent 54dc802 commit 715503a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

images/openstack/Dockerfile.ci

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ COPY --from=builder /go/src/github.com/openshift/installer/upi/openstack /var/li
2727
COPY --from=builder /go/src/github.com/openshift/installer/docs/user/openstack /var/lib/openshift-install/docs
2828
COPY --from=builder /go/src/github.com/openshift/installer/hack/openstack/test-manifests.sh /go/src/github.com/openshift/installer/scripts/openstack/manifest-tests /var/lib/openshift-install/manifest-tests
2929

30+
# Check if /usr/share/zoneinfo has been previously deleted
31+
RUN if [ ! -f /usr/share/zoneinfo/zone.tab ]; then \
32+
yum install -y --setopt=tsflags= tzdata; \
33+
yum clean all; rm -rf /var/cache/yum/*; \
34+
fi
35+
3036
# Install Dependendencies for tests
31-
RUN yum update -y --setopt=tsflags= tzdata && \
32-
yum update -y && \
37+
RUN yum update -y && \
3338
yum install --setopt=tsflags=nodocs -y \
3439
ansible-collection-ansible-netcommon \
3540
ansible-collection-community-general \

0 commit comments

Comments
 (0)