Skip to content

Commit 66757b0

Browse files
committed
optimization the install ansible way on opensuse
1 parent 10357cb commit 66757b0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

opensuse-42.1/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ RUN zypper addrepo -Gf http://download.opensuse.org/repositories/systemsmanageme
77

88
# Upgrade.
99
RUN zypper update -y
10-
#
10+
1111
# Install the requires package and python.
12-
RUN zypper install -y \
12+
RUN zypper -n install \
1313
kernel-devel gcc python python-pip python-devel \
1414
libffi-devel-gcc5 libopenssl-devel libzmq5 \
1515
&& \
1616
zypper clean -a
1717

1818
# Install the Ansible 2.0+
19-
RUN zypper install -y ansible-2.2.0.0-56.1
19+
RUN zypper -n install ansible && \
20+
zypper clean -a
2021

2122
# for disable localhost warning message.
2223
RUN /bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts

0 commit comments

Comments
 (0)