Files
vpn-dns-gateway/demo/ci/prepare-images.sh
T
vsun1 27b82c169e
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
Add frozen TikZRefinery demo baseline and build pipeline
2026-11-25 22:46:33 -05:00

24 lines
1.1 KiB
Bash

#!/bin/sh
# Administrator preparation on the existing host; no application/service restart.
set -eu
base=ssw590-manual-ci:20261007
expected=sha256:5d24657a4578977fc7709165b82fc869f09a654a58ab4a0c8defd9d2cd662d5d
[ "$(docker image inspect -f '{{.Id}}' "$base")" = "$expected" ] || {
echo 'Existing manual toolchain ID differs; investigate before building.' >&2; exit 1;
}
mkdir -p build/demo
export DOCKER_BUILDKIT=0
docker build --force-rm --memory=512m --memory-swap=768m --cpu-quota=50000 \
-t ssw590-demo-toolchain:20261125 -f demo/ci/toolchain.Dockerfile demo/ci
docker build --force-rm --memory=512m --memory-swap=768m --cpu-quota=50000 \
-t ssw590-demo-runtime:20261125 -f demo/ci/runtime.Dockerfile demo/ci
python3 - <<'PY'
import json, subprocess
from pathlib import Path
def identity(name):
return subprocess.check_output(['docker','image','inspect','-f','{{.Id}}',name],text=True).strip()
record = {name: identity(name) for name in ['ssw590-demo-toolchain:20261125','ssw590-demo-runtime:20261125']}
Path('build/demo/toolchain-observed.json').write_text(json.dumps(record,indent=2)+'\n')
print(json.dumps(record,indent=2))
PY