2017-01-03 19:32:03 +00:00
|
|
|
FROM opensuse:42.2
|
2016-05-20 14:37:06 +00:00
|
|
|
|
2017-11-17 20:50:42 +00:00
|
|
|
RUN zypper --non-interactive --gpg-auto-import-keys refresh --services --force && \
|
2016-06-22 00:44:41 +00:00
|
|
|
zypper --non-interactive install --force systemd-sysvinit && \
|
|
|
|
zypper --non-interactive install --auto-agree-with-licenses --no-recommends \
|
2016-05-20 14:37:06 +00:00
|
|
|
acl \
|
2016-07-25 14:19:49 +00:00
|
|
|
apache2 \
|
2016-05-20 14:37:06 +00:00
|
|
|
asciidoc \
|
|
|
|
bzip2 \
|
2016-05-24 15:22:34 +00:00
|
|
|
curl \
|
2016-05-20 14:37:06 +00:00
|
|
|
dbus-1-python \
|
|
|
|
gcc \
|
|
|
|
git \
|
2016-05-24 15:22:34 +00:00
|
|
|
glibc-i18ndata \
|
2016-06-22 00:44:41 +00:00
|
|
|
glibc-locale \
|
|
|
|
iproute2 \
|
2016-05-20 14:37:06 +00:00
|
|
|
lsb-release \
|
|
|
|
make \
|
|
|
|
mariadb \
|
2016-06-22 00:44:41 +00:00
|
|
|
mercurial \
|
2016-05-20 14:37:06 +00:00
|
|
|
openssh \
|
2017-08-14 22:19:40 +00:00
|
|
|
password-store \
|
2016-07-18 20:55:10 +00:00
|
|
|
postgresql-server \
|
2017-06-12 10:14:46 +00:00
|
|
|
python-cryptography \
|
2017-06-23 19:45:38 +00:00
|
|
|
python-devel \
|
2016-05-20 14:37:06 +00:00
|
|
|
python-httplib2 \
|
|
|
|
python-jinja2 \
|
|
|
|
python-keyczar \
|
2017-06-07 11:48:16 +00:00
|
|
|
python-lxml \
|
2016-05-20 14:37:06 +00:00
|
|
|
python-mock \
|
2016-06-22 00:44:41 +00:00
|
|
|
python-MySQL-python \
|
2016-05-20 14:37:06 +00:00
|
|
|
python-nose \
|
|
|
|
python-paramiko \
|
2016-06-22 20:30:10 +00:00
|
|
|
python-passlib \
|
2016-05-20 14:37:06 +00:00
|
|
|
python-pip \
|
2016-07-18 20:55:10 +00:00
|
|
|
python-psycopg2 \
|
2016-06-22 00:44:41 +00:00
|
|
|
python-PyYAML \
|
2016-05-20 14:37:06 +00:00
|
|
|
python-setuptools \
|
2016-06-22 00:44:41 +00:00
|
|
|
python-virtualenv \
|
|
|
|
rpm-build \
|
|
|
|
ruby \
|
2017-06-25 12:25:31 +00:00
|
|
|
sshpass \
|
2016-06-22 00:44:41 +00:00
|
|
|
subversion \
|
|
|
|
sudo \
|
|
|
|
tar \
|
|
|
|
unzip \
|
|
|
|
which \
|
|
|
|
zip \
|
|
|
|
&& \
|
2017-11-17 20:50:42 +00:00
|
|
|
zypper clean --all
|
2016-05-20 14:37:06 +00:00
|
|
|
|
|
|
|
# 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
|
2017-06-23 19:45:38 +00:00
|
|
|
RUN pip install coverage junit-xml
|
2016-05-20 14:37:06 +00:00
|
|
|
ENV container=docker
|
|
|
|
CMD ["/sbin/init"]
|