chore: import MCTF services
- Added all seven issued service trees without omissions. - Preserved the supplied runtime configuration, binaries, and assets.
This commit is contained in:
commit
13f936bee9
1222 files changed
+21280
No files matched your search
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
IMAGE="towercore:final-mips64le"
|
||||
TAR="$ROOT/images/towercore-mips64le.tar"
|
||||
|
||||
docker load -i "$TAR" >/dev/null
|
||||
|
||||
mips_can_exec() {
|
||||
local out
|
||||
out="$(docker run --rm --platform linux/mips64le \
|
||||
--entrypoint /towerctl "$IMAGE" 2>&1 || true)"
|
||||
! grep -qi 'exec format error' <<<"$out"
|
||||
}
|
||||
|
||||
if ! mips_can_exec; then
|
||||
echo "registering linux/mips64le binfmt..."
|
||||
docker run --privileged --rm tonistiigi/binfmt --install mips64le || true
|
||||
mips_can_exec || { echo "MIPS emulation unavailable" >&2; exit 1; }
|
||||
fi
|
||||
|
||||
cd "$ROOT"
|
||||
docker compose up -d
|
||||
docker compose ps
|
||||
Reference in new issue
Block a user