Add self-contained relay deployment project and operational guidance
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# Execute on an INTERNET-CONNECTED LINUX ARM64 machine with Docker and Python 3.12.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
case "$(uname -m)" in aarch64|arm64) ;; *) echo 'Run on Linux ARM64'; exit 1 ;; esac
|
||||
python3 -c 'import sys; assert sys.version_info[:2] == (3,12)'
|
||||
mkdir -p images wheelhouse
|
||||
python3 -m pip download --only-binary=:all: --dest wheelhouse -r requirements.lock
|
||||
for spec in python:3.12-slim-bookworm postgres:17-alpine redis:8.2-alpine caddy:2-alpine; do
|
||||
docker pull --platform linux/arm64 "$spec"
|
||||
file=${spec//:/-}
|
||||
docker save -o "images/$file-linux-arm64.tar" "$spec"
|
||||
done
|
||||
find images wheelhouse -type f -print0 | sort -z | xargs -0 sha256sum > OFFLINE_SHA256SUMS
|
||||
echo 'Exact downloaded contents are recorded in OFFLINE_SHA256SUMS. Transfer the whole deployable directory.'
|
||||
Reference in New Issue
Block a user