Skip to content

Commit

Permalink
Start dbus and firewalld in test script and Dockerfile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dvershinin committed Jul 11, 2024
1 parent 723810e commit fc6eab3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.firewalld
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions firewalld-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash
set -x

systemctl start dbus
systemctl start firewalld

sleep 5

fds block 1.2.3.4

0 comments on commit fc6eab3

Please sign in to comment.