Add scripts/entrypoint.sh — container web UI with JSON/MD/PDF export
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# ───────────────────────────────────────────────────────────
|
||||||
|
# Entrypoint: web UI by default, ansible-playbook if arguments given
|
||||||
|
#
|
||||||
|
# docker run -p 8080:8080 ansible-node → web UI
|
||||||
|
# docker run ansible-node site.yml -i inventory → ansible-playbook
|
||||||
|
# ───────────────────────────────────────────────────────────
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
echo "Starting web UI on http://0.0.0.0:8080"
|
||||||
|
exec python3 /usr/local/bin/container-webui.py
|
||||||
|
else
|
||||||
|
exec ansible-playbook "$@"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user