5.0: avvio in locale nella sandbox deploy/local, script di avvio e screenshot, arresto pulito del container verificato
Per vedere e provare il bot senza Unraid: F5 in VS Code, scripts/run-dev e scripts/run-docker usano tutti deploy/local come /config e /data, con la stessa disposizione del container, così chiavi e configurazione valgono in ogni modo. ENCELADO_DATA_DIR separa i dati anche fuori dal container. scripts/screenshots rigenera docs/img dal server campione; /api/health in --sample non finge più un motore acceso. docker stop ora termina in un secondo con «SIGTERM: arresto» (PosixSignalRegistration), provato sull'immagine 5.0.0 costruita dalla catena. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env sh
|
||||
# Builds the image and starts Encelado in the container with the docker-compose.yml at the root.
|
||||
# deploy/local/config and deploy/local/data are mounted as /config and /data (the same
|
||||
# folders scripts/run-dev.sh uses). Token "sviluppo" unless ENCELADO_WEB_TOKEN is in .env.
|
||||
# sh scripts/run-docker.sh # build + up -d + follow the log (Ctrl+C leaves it running)
|
||||
# sh scripts/run-docker.sh --no-build
|
||||
# sh scripts/run-docker.sh --down # docker compose down (SIGTERM, clean stop)
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
case "${1:-}" in
|
||||
--down) exec docker compose down ;;
|
||||
esac
|
||||
mkdir -p deploy/local/config deploy/local/data
|
||||
export GIT_COMMIT="$(git rev-parse --short=12 HEAD 2>/dev/null || echo n/d)"
|
||||
export PUID="${PUID:-1000}" PGID="${PGID:-1000}"
|
||||
if [ "${1:-}" = "--no-build" ]; then docker compose up -d; else docker compose up -d --build; fi
|
||||
echo "Encelado nel container: http://localhost:${ENCELADO_WEB_PORT:-8080}/ token: ${ENCELADO_WEB_TOKEN:-sviluppo} (sh scripts/run-docker.sh --down per fermare)"
|
||||
exec docker compose logs -f encelado
|
||||
Reference in New Issue
Block a user