Add frozen TikZRefinery demo baseline and build pipeline
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user