Demo images / Build & push demo images (push) Failing after 2m22s
Replaces the registry host across 86 files: 309 references, covering all 40 app manifests, the orchestrator and container crates, the release and catalog scripts, both demo-images workflows, the ISO builder, demo-deploy, and the frontend marketplace data. Verified the domain actually serves the registry before rewriting anything, rather than assuming the web host implies the registry: - TLS verifies clean, HTTP/2 on the web root - an anonymous token grants a manifest fetch (HTTP 200) with no credentials - skopeo inspect --no-creds resolves an image and lists its tags That last check is the one that matters: an outside developer with no account can now pull, which was the functional blocker for publishing at all. Plain-HTTP references become HTTPS in the same pass, so OTA downloads stop crossing the network in the clear. Deliberately NOT rewritten: - The public FIPS anchor on port 8444. It is a functional network endpoint every node dials to bootstrap the mesh — closer to Bitcoin Core's hardcoded seeds than to leaked infrastructure. The domain does resolve to the same host, so it could become a hostname, but that adds a DNS dependency to the path used precisely when things are broken. Worth a deliberate decision, not a side effect of this change. - The companion APK on port 2100. The domain returns 404 for that path, so rewriting it would swap a working URL for a broken one. The Releases page does serve (200), which is where the plan already wants those binaries. - releases/app-catalog.json, releases/manifest.json and release-manifest.json. These carry `signature` and `signed_by`; editing their contents invalidates the signature and the fleet refuses artifacts that fail verification. They were rewritten in a first pass and reverted — they must be regenerated and re-signed through the signing ceremony instead, which needs the mnemonic. So the catalog still advertises the old host until that ceremony runs. Nodes resolve images through the signed catalog, not the on-disk manifests, so this commit alone does not change what a node pulls. Verified: archipelago-container 75/75; every manifest still parses with a top-level app block; no signed artifact modified. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
79 lines
2.6 KiB
Bash
Executable File
79 lines
2.6 KiB
Bash
Executable File
#!/bin/bash
|
|
# Podman Installation and Configuration Script for Archipelago
|
|
# Configures Podman for rootless operation
|
|
|
|
set -e
|
|
|
|
echo "🐳 Configuring Podman for rootless operation..."
|
|
|
|
if ! command -v catatonit >/dev/null 2>&1; then
|
|
if command -v apt-get >/dev/null 2>&1; then
|
|
apt-get update || true
|
|
apt-get install -y catatonit || true
|
|
elif command -v dnf >/dev/null 2>&1; then
|
|
dnf install -y catatonit || true
|
|
elif command -v apk >/dev/null 2>&1; then
|
|
apk add catatonit || true
|
|
fi
|
|
fi
|
|
|
|
command -v catatonit >/dev/null 2>&1 || echo "WARNING: catatonit not installed; Podman init-enabled containers may fail"
|
|
|
|
# Ensure archipelago user exists
|
|
if ! id "archipelago" &>/dev/null; then
|
|
echo "Creating archipelago user..."
|
|
adduser -D -s /bin/bash archipelago
|
|
fi
|
|
|
|
# Create Podman configuration directories
|
|
mkdir -p /home/archipelago/.config/containers
|
|
mkdir -p /home/archipelago/.local/share/containers/storage
|
|
|
|
# Configure storage
|
|
cat > /home/archipelago/.config/containers/storage.conf <<EOF
|
|
[storage]
|
|
driver = "overlay"
|
|
runroot = "/run/user/$(id -u archipelago)/containers"
|
|
graphroot = "/home/archipelago/.local/share/containers/storage"
|
|
EOF
|
|
|
|
# Configure registries (use Docker Hub and quay.io)
|
|
mkdir -p /home/archipelago/.config/containers/registries.conf.d
|
|
cat > /home/archipelago/.config/containers/registries.conf <<EOF
|
|
unqualified-search-registries = ["docker.io", "ghcr.io", "quay.io", "source.archipelago-foundation.org"]
|
|
|
|
[[registry]]
|
|
location = "source.archipelago-foundation.org"
|
|
insecure = true
|
|
EOF
|
|
|
|
# Set up subuid and subgid for rootless containers
|
|
if ! grep -q "^archipelago:" /etc/subuid; then
|
|
echo "archipelago:100000:65536" >> /etc/subuid
|
|
fi
|
|
|
|
if ! grep -q "^archipelago:" /etc/subgid; then
|
|
echo "archipelago:100000:65536" >> /etc/subgid
|
|
fi
|
|
|
|
# Create systemd user service directory
|
|
mkdir -p /home/archipelago/.config/systemd/user
|
|
|
|
# Enable lingering for archipelago user (allows user services to run without login)
|
|
loginctl enable-linger archipelago || true
|
|
|
|
# Ensure /run/user/1000 exists for podman socket
|
|
mkdir -p /run/user/1000
|
|
chown archipelago:archipelago /run/user/1000
|
|
chmod 700 /run/user/1000
|
|
|
|
# Enable podman API socket for archipelago user (backend connects via this)
|
|
su - archipelago -c "XDG_RUNTIME_DIR=/run/user/1000 systemctl --user enable podman.socket" || true
|
|
su - archipelago -c "XDG_RUNTIME_DIR=/run/user/1000 systemctl --user start podman.socket" || true
|
|
|
|
# Set proper permissions
|
|
chown -R archipelago:archipelago /home/archipelago/.config
|
|
chown -R archipelago:archipelago /home/archipelago/.local
|
|
|
|
echo "✅ Podman configuration complete!"
|