Improve zypper refresh/clean for opensuse images.

pull/33033/head
Matt Clay 7 years ago
parent b3e4a88b90
commit 2ef438c962

@ -1,6 +1,6 @@
FROM opensuse:42.2 FROM opensuse:42.2
RUN zypper --non-interactive --gpg-auto-import-keys refresh && \ RUN zypper --non-interactive --gpg-auto-import-keys refresh --services --force && \
zypper --non-interactive install --force systemd-sysvinit && \ zypper --non-interactive install --force systemd-sysvinit && \
zypper --non-interactive install --auto-agree-with-licenses --no-recommends \ zypper --non-interactive install --auto-agree-with-licenses --no-recommends \
acl \ acl \
@ -47,7 +47,7 @@ RUN zypper --non-interactive --gpg-auto-import-keys refresh && \
which \ which \
zip \ zip \
&& \ && \
zypper clean zypper clean --all
# systemd path differs from rhel # systemd path differs from rhel
ENV LIBSYSTEMD=/usr/lib/systemd/system ENV LIBSYSTEMD=/usr/lib/systemd/system

@ -1,6 +1,6 @@
FROM opensuse:42.3 FROM opensuse:42.3
RUN zypper --non-interactive --gpg-auto-import-keys refresh && \ RUN zypper --non-interactive --gpg-auto-import-keys refresh --services --force && \
zypper --non-interactive install --force systemd-sysvinit && \ zypper --non-interactive install --force systemd-sysvinit && \
zypper --non-interactive install --auto-agree-with-licenses --no-recommends \ zypper --non-interactive install --auto-agree-with-licenses --no-recommends \
acl \ acl \
@ -47,7 +47,7 @@ RUN zypper --non-interactive --gpg-auto-import-keys refresh && \
which \ which \
zip \ zip \
&& \ && \
zypper clean zypper clean --all
# systemd path differs from rhel # systemd path differs from rhel
ENV LIBSYSTEMD=/usr/lib/systemd/system ENV LIBSYSTEMD=/usr/lib/systemd/system

Loading…
Cancel
Save