Improve zypper refresh/clean for opensuse images.

This commit is contained in:
Matt Clay 2017-11-17 12:50:42 -08:00
parent b3e4a88b90
commit 2ef438c962
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
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 --auto-agree-with-licenses --no-recommends \
acl \
@ -47,7 +47,7 @@ RUN zypper --non-interactive --gpg-auto-import-keys refresh && \
which \
zip \
&& \
zypper clean
zypper clean --all
# systemd path differs from rhel
ENV LIBSYSTEMD=/usr/lib/systemd/system

View file

@ -1,6 +1,6 @@
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 --auto-agree-with-licenses --no-recommends \
acl \
@ -47,7 +47,7 @@ RUN zypper --non-interactive --gpg-auto-import-keys refresh && \
which \
zip \
&& \
zypper clean
zypper clean --all
# systemd path differs from rhel
ENV LIBSYSTEMD=/usr/lib/systemd/system