From d835b2cae8abc71958b69362162e6a70c3d7ef63 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 08:48:59 +0200 Subject: Adding upstream version 4.6.0. Signed-off-by: Daniel Baumann --- test_container/Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 test_container/Dockerfile (limited to 'test_container/Dockerfile') diff --git a/test_container/Dockerfile b/test_container/Dockerfile new file mode 100644 index 0000000..c099d31 --- /dev/null +++ b/test_container/Dockerfile @@ -0,0 +1,28 @@ +FROM opensuse/leap:15.5 +MAINTAINER Xin Liang + +CMD ["/usr/lib/systemd/systemd", "--system"] + +RUN zypper refresh && \ + zypper -n install systemd \ + make autoconf automake vim which libxslt-tools mailx iproute2 iputils bzip2 openssh tar file glibc-locale-base firewalld libopenssl1_1 dos2unix iptables \ + python3 python3-pip python3-lxml python3-python-dateutil python3-setuptools python3-PyYAML python3-curses python3-behave \ + csync2 libglue-devel corosync corosync-qdevice pacemaker booth corosync-qnetd +RUN zypper --non-interactive up zypper && \ + zypper ar -f -G https://download.opensuse.org/repositories/network:/ha-clustering:/Factory/SLE_15_SP4 repo_nhf && \ + zypper --non-interactive refresh && \ + zypper --non-interactive up --allow-vendor-change -y resource-agents libqb100 pacemaker + +RUN ssh-keygen -t rsa -f /root/.ssh/id_rsa -N '' && \ + cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys && \ + chmod 0600 /root/.ssh/authorized_keys + + +RUN python3 -m pip install coverage + +RUN mkdir -p /var/log/crmsh + +COPY behave_agent.py /opt +COPY behave-agent.socket /etc/systemd/system +COPY behave-agent@.service /etc/systemd/system +RUN systemctl enable behave-agent.socket -- cgit v1.2.3