summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2016-06-21 17:44:41 -0700
committerMatt Clay <matt@mystile.com>2016-06-21 17:46:30 -0700
commit7de23a1c5beb95ba569e2f14aff38e70a2e5134b (patch)
treea097fdddadc0262719deac62df0e1c6d8320ca20
parent4c1601e9f245cda42e5c41237189d2a039e2f525 (diff)
downloadansible-7de23a1c5beb95ba569e2f14aff38e70a2e5134b.tar.gz
Update opensuseleap Dockerfile.
- Do not update base image packages unnecessarily. - Fix incorrect package names. - Remove commented out RUN statements. - Sort list of packages to install.
-rw-r--r--test/utils/docker/opensuseleap/Dockerfile40
1 files changed, 19 insertions, 21 deletions
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,34 +10,36 @@ 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 \
- rpm-build \
- ruby \
- subversion \
- sudo \
- tar \
- unzip \
- which \
- zip \
- python-PyYAML \
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
+ python-virtualenv \
+ rpm-build \
+ ruby \
+ subversion \
+ sudo \
+ tar \
+ unzip \
+ which \
+ zip \
+ && \
+ 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