diff --git a/test/utils/docker/opensuseleap/Dockerfile b/test/utils/docker/opensuseleap/Dockerfile index 86905c11af..2be1a2ad44 100644 --- a/test/utils/docker/opensuseleap/Dockerfile +++ b/test/utils/docker/opensuseleap/Dockerfile @@ -1,11 +1,8 @@ FROM opensuse:leap -RUN zypper --gpg-auto-import-keys --non-interactive ref && \ - zypper --gpg-auto-import-keys --non-interactive up - -#RUN yum -y update; yum clean all; yum -y swap fakesystemd systemd - -RUN zypper --non-interactive install --auto-agree-with-licenses \ +RUN zypper --non-interactive --gpg-auto-import-keys refresh && \ + zypper --non-interactive install --force systemd-sysvinit && \ + zypper --non-interactive install --auto-agree-with-licenses --no-recommends \ acl \ asciidoc \ bzip2 \ @@ -13,15 +10,26 @@ RUN zypper --non-interactive install --auto-agree-with-licenses \ dbus-1-python \ gcc \ git \ - glibc-locale \ glibc-i18ndata \ - iproute \ + glibc-locale \ + iproute2 \ lsb-release \ make \ - mercurial \ mariadb \ - python-mysql \ + mercurial \ openssh \ + python-coverage \ + python-httplib2 \ + python-jinja2 \ + python-keyczar \ + python-mock \ + python-MySQL-python \ + python-nose \ + python-paramiko \ + python-pip \ + python-PyYAML \ + python-setuptools \ + python-virtualenv \ rpm-build \ ruby \ subversion \ @@ -30,17 +38,8 @@ RUN zypper --non-interactive install --auto-agree-with-licenses \ unzip \ which \ zip \ - python-PyYAML \ - python-coverage \ - python-httplib2 \ - python-jinja2 \ - python-keyczar \ - python-mock \ - python-nose \ - python-paramiko \ - python-pip \ - python-setuptools \ - python-virtualenv + && \ + zypper clean # systemd path differs from rhel ENV LIBSYSTEMD=/usr/lib/systemd/system @@ -55,7 +54,6 @@ rm -f ${LIBSYSTEMD}/basic.target.wants/*; # don't create systemd-session for ssh connections RUN sed -i /pam_systemd/d /etc/pam.d/common-session-pc -#RUN localedef --quiet -c -i en_US -f UTF-8 en_US.UTF-8 RUN mkdir /etc/ansible/ RUN /usr/bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts VOLUME /sys/fs/cgroup /run /tmp