mirror of
https://github.com/chaifeng/ufw-docker.git
synced 2025-06-28 06:56:13 +02:00
Add Dockerfile for image ufw-docker-agent
This commit is contained in:
parent
2c5391dcec
commit
424c2b4474
3 changed files with 43 additions and 0 deletions
21
docker-entrypoint.sh
Executable file
21
docker-entrypoint.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
[[ 0 -eq "$#" ]] && set -- start
|
||||
|
||||
ufw_docker_agent_image=192.168.56.120:5000/ufw-docker-agent
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
sleep 60; exit 1
|
||||
;;
|
||||
delete|allow)
|
||||
ufw-docker "$@"
|
||||
;;
|
||||
*)
|
||||
if [[ -f "$1" ]]; then
|
||||
exec "$@"
|
||||
else
|
||||
echo "Unknown parameters: $@" >&2
|
||||
exit 1
|
||||
fi
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue