Skip to content

Commit

Permalink
Update Docker run command in test workflow
Browse files Browse the repository at this point in the history
The command to run the docker container in the Github Actions workflow file, 'test-firewalld.yml', has been updated. The '--init' flag was added to the command to ensure that an init process is included. This helps in handling the lifecycle events of the container more gracefully.
  • Loading branch information
dvershinin committed Jul 11, 2024
1 parent 0aee6f8 commit 8cdb73d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-firewalld.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Run tests
run: |
# Run the container with systemd initialization
docker run --privileged --name firewalld-container -d -v /sys/fs/cgroup:/sys/fs/cgroup:ro my-firewalld-image /usr/sbin/init
docker run --init --privileged --name firewalld-container -d -v /sys/fs/cgroup:/sys/fs/cgroup:ro my-firewalld-image /usr/sbin/init
# Wait for the container to be fully initialized
sleep 10
Expand Down

0 comments on commit 8cdb73d

Please sign in to comment.