From 2b49992165abbf212a3b5e2c15d89e7dd145641b Mon Sep 17 00:00:00 2001 From: oval Date: Tue, 7 Jul 2026 18:49:40 +0000 Subject: [PATCH] =?UTF-8?q?Add=20scripts/entrypoint.sh=20=E2=80=94=20conta?= =?UTF-8?q?iner=20web=20UI=20with=20JSON/MD/PDF=20export?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/entrypoint.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/entrypoint.sh diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh new file mode 100644 index 0000000..2bbaedf --- /dev/null +++ b/scripts/entrypoint.sh @@ -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