diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:48:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:48:59 +0000 |
commit | d835b2cae8abc71958b69362162e6a70c3d7ef63 (patch) | |
tree | 81052e3d2ce3e1bcda085f73d925e9d6257dec15 /test_container/Dockerfile | |
parent | Initial commit. (diff) | |
download | crmsh-d835b2cae8abc71958b69362162e6a70c3d7ef63.tar.xz crmsh-d835b2cae8abc71958b69362162e6a70c3d7ef63.zip |
Adding upstream version 4.6.0.upstream/4.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test_container/Dockerfile')
-rw-r--r-- | test_container/Dockerfile | 28 |
1 files changed, 28 insertions, 0 deletions
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 <XLiang@suse.com> + +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 |