From fc6eab3f9cf6070aae693e0f727286e0e07bdc7e Mon Sep 17 00:00:00 2001 From: Danila Vershinin Date: Fri, 12 Jul 2024 00:25:20 +0500 Subject: [PATCH] Start dbus and firewalld in test script and Dockerfile The test script 'firewalld-tests.sh' has been modified to start dbus and firewalld services before executing the tests. In the Dockerfile 'Dockerfile.firewalld', dbus is now being installed along with the other packages. The services for both firewalld and dbus are also enabled in the Dockerfile setup. --- Dockerfile.firewalld | 4 ++-- firewalld-tests.sh | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile.firewalld b/Dockerfile.firewalld index 0a6aff2..8d54a48 100644 --- a/Dockerfile.firewalld +++ b/Dockerfile.firewalld @@ -1,9 +1,9 @@ FROM rockylinux:9 # Install systemd and firewalld -RUN yum install -y systemd firewalld python3-pip git \ +RUN yum install -y systemd firewalld dbus python3-pip git \ && yum clean all \ - && systemctl enable firewalld + && systemctl enable firewalld && systemctl enable dbus # Set up the working directory WORKDIR /app diff --git a/firewalld-tests.sh b/firewalld-tests.sh index cfb1c74..a888d79 100755 --- a/firewalld-tests.sh +++ b/firewalld-tests.sh @@ -1,4 +1,9 @@ #!/bin/bash set -x +systemctl start dbus +systemctl start firewalld + +sleep 5 + fds block 1.2.3.4