mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.2 KiB
Docker
75 lines
2.2 KiB
Docker
8 years ago
|
FROM opensuse:42.2
|
||
9 years ago
|
|
||
8 years ago
|
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 \
|
||
9 years ago
|
acl \
|
||
8 years ago
|
apache2 \
|
||
9 years ago
|
asciidoc \
|
||
|
bzip2 \
|
||
9 years ago
|
curl \
|
||
9 years ago
|
dbus-1-python \
|
||
|
gcc \
|
||
|
git \
|
||
9 years ago
|
glibc-i18ndata \
|
||
8 years ago
|
glibc-locale \
|
||
|
iproute2 \
|
||
9 years ago
|
lsb-release \
|
||
|
make \
|
||
|
mariadb \
|
||
8 years ago
|
mercurial \
|
||
9 years ago
|
openssh \
|
||
8 years ago
|
postgresql-server \
|
||
9 years ago
|
python-coverage \
|
||
|
python-httplib2 \
|
||
|
python-jinja2 \
|
||
|
python-keyczar \
|
||
|
python-mock \
|
||
8 years ago
|
python-MySQL-python \
|
||
9 years ago
|
python-nose \
|
||
|
python-paramiko \
|
||
8 years ago
|
python-passlib \
|
||
9 years ago
|
python-pip \
|
||
8 years ago
|
python-psycopg2 \
|
||
8 years ago
|
python-PyYAML \
|
||
9 years ago
|
python-setuptools \
|
||
8 years ago
|
python-virtualenv \
|
||
|
rpm-build \
|
||
|
ruby \
|
||
|
subversion \
|
||
|
sudo \
|
||
|
tar \
|
||
|
unzip \
|
||
|
which \
|
||
|
zip \
|
||
|
&& \
|
||
|
zypper clean
|
||
9 years ago
|
|
||
|
# systemd path differs from rhel
|
||
|
ENV LIBSYSTEMD=/usr/lib/systemd/system
|
||
|
RUN (cd ${LIBSYSTEMD}/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
|
||
|
rm -f ${LIBSYSTEMD}/multi-user.target.wants/*; \
|
||
|
rm -f /etc/systemd/system/*.wants/*; \
|
||
|
rm -f ${LIBSYSTEMD}/local-fs.target.wants/*; \
|
||
|
rm -f ${LIBSYSTEMD}/sockets.target.wants/*udev*; \
|
||
|
rm -f ${LIBSYSTEMD}/sockets.target.wants/*initctl*; \
|
||
|
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 mkdir /etc/ansible/
|
||
|
RUN /usr/bin/echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
|
||
|
VOLUME /sys/fs/cgroup /run /tmp
|
||
|
RUN ssh-keygen -q -t rsa1 -N '' -f /etc/ssh/ssh_host_key && \
|
||
|
ssh-keygen -q -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key && \
|
||
|
ssh-keygen -q -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key && \
|
||
|
ssh-keygen -q -t rsa -N '' -f /root/.ssh/id_rsa && \
|
||
|
cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \
|
||
|
for key in /etc/ssh/ssh_host_*_key.pub; do echo "localhost $(cat ${key})" >> /root/.ssh/known_hosts; done
|
||
|
# explicitly enable the service, opensuse default to disabled services
|
||
|
RUN systemctl enable sshd.service
|
||
9 years ago
|
RUN pip install junit-xml
|
||
9 years ago
|
ENV container=docker
|
||
|
CMD ["/sbin/init"]
|