- Clone all 5 Zonemaster component repos (LDNS, Engine, CLI, Backend, GUI) - Dockerfile.backend: 8-stage multi-stage build LDNS→Engine→CLI→Backend - Dockerfile.gui: Astro static build served via nginx - docker-compose.yml: backend (internal) + frontend (port 5353) - nginx.conf: root redirects to /es/, /api/ proxied to backend - zonemaster-gui/config.ts: defaultLanguage set to 'es' (Spanish) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
45 lines
673 B
Bash
Executable File
45 lines
673 B
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
case $1 in
|
|
|
|
cli)
|
|
shift 1
|
|
zonemaster-cli $@
|
|
;;
|
|
|
|
zmb)
|
|
shift 1
|
|
zmb $@
|
|
;;
|
|
|
|
zmtest)
|
|
shift 1
|
|
zmtest $@
|
|
;;
|
|
|
|
rpcapi)
|
|
/usr/local/bin/starman --listen=0.0.0.0:5000 --preload-app --user=zonemaster --group=zonemaster /usr/local/bin/zonemaster_backend_rpcapi.psgi
|
|
|
|
;;
|
|
|
|
testagent)
|
|
/usr/local/bin/zonemaster_backend_testagent -user=zonemaster --group=zonemaster foreground
|
|
;;
|
|
|
|
full)
|
|
exec /init
|
|
;;
|
|
*)
|
|
echo "'$1' is not a valid option.
|
|
Available options:
|
|
- cli : pass argument to zonemaster-cli then quit
|
|
- full : start both rpcapi & testagent
|
|
- rpcapi
|
|
- testagent
|
|
- zmb
|
|
- zmtest
|
|
"
|
|
;;
|
|
esac;
|