Introduce backend app for WebSocket terminal sessions and sandbox orchestration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
OverlordandClaude Bot committed 2026-10-13 00:22:49 +02:00
1 parent 7b1df2607e
commit 91049379f7
22 files changed
+808 -11

No files matched your search

+6 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Deploys the terminal homepage on this host. Clone the repository into
# /srv/security-command.org and run this script for the first setup and for
# every update.
# Deploys the terminal homepage on this host from its clone in
# /srv/security-command.org. The same run covers the first setup and every
# update.
#
# Usage: sudo ./deploy.sh [--no-pull]
# --no-pull deploy the checked out commit without pulling (allows local changes)
@@ -74,8 +74,10 @@ pull_image() {
commit=$(as_owner git rev-parse HEAD)
sandbox_tag="${REGISTRY}/homepage-sandbox:${commit}"
spawner_tag="${REGISTRY}/homepage-spawner:${commit}"
backend_tag="${REGISTRY}/homepage-backend:${commit}"
pull_image sandbox_docker "$sandbox_tag"
pull_image docker "$spawner_tag"
pull_image docker "$backend_tag"
digest() { "$1" image inspect --format '{{index .RepoDigests 0}}' "$2"; }
# The spawner runs as 10001 and shares group 10100 with the backend.
@@ -84,6 +86,7 @@ install -d -o 10001 -g 10100 -m 0750 runtime/spawner
cat > runtime/deploy.env <<EOF
SANDBOX_IMAGE=$(digest sandbox_docker "$sandbox_tag")
SPAWNER_IMAGE=$(digest docker "$spawner_tag")
BACKEND_IMAGE=$(digest docker "$backend_tag")
SANDBOX_GROUP_ID=$(getent group sandbox-spawner | cut -d: -f3)
STATUS_DIR=${PWD}/runtime/status
EOF