Skip to content

Commit

Permalink
Add delay and introduce tini in Dockerfile
Browse files Browse the repository at this point in the history
Increased the delay after starting dbus in the firewalld-tests.sh script to ensure firewalld starts smoothly. Updated Dockerfile.firewalld to include tini at installation and as an entrypoint to handle zombie processes and signal forwarding.
  • Loading branch information
dvershinin committed Jul 11, 2024
1 parent 7dbabb8 commit f4c3669
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile.firewalld
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM rockylinux:9

# Install systemd and firewalld
RUN yum install -y systemd firewalld dbus python3-pip git \
RUN yum install -y systemd firewalld dbus python3-pip git tini \
&& yum clean all \
&& systemctl enable firewalld

Expand Down Expand Up @@ -33,4 +33,6 @@ RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == system

VOLUME [ "/sys/fs/cgroup" ]

ENTRYPOINT ["/usr/bin/tini", "--"]

CMD ["/sbin/init"]
2 changes: 1 addition & 1 deletion firewalld-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -x

systemctl start dbus
sleep 5
systemctl start firewalld

sleep 5

fds block 1.2.3.4

0 comments on commit f4c3669

Please sign in to comment.