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>
91 lines
2.6 KiB
YAML
91 lines
2.6 KiB
YAML
app:
|
|
id: electrumx
|
|
name: ElectrumX
|
|
version: 1.18.0
|
|
description: Electrum server indexing Bitcoin chain data for lightweight wallet queries.
|
|
|
|
container:
|
|
image: source.archipelago-foundation.org/lfg2025/electrumx:v1.18.0
|
|
pull_policy: if-not-present
|
|
network: archy-net
|
|
data_uid: "1000:1000"
|
|
entrypoint: ["sh", "-lc"]
|
|
# The bitcoin backend container is bitcoin-knots OR bitcoin-core depending
|
|
# on which version the node runs (multi-version switch) — probe which name
|
|
# resolves on archy-net instead of hardcoding knots, which left electrumx
|
|
# permanently disconnected (block index 0) on core nodes.
|
|
custom_args:
|
|
- >-
|
|
for h in bitcoin-knots bitcoin-core; do
|
|
if getent hosts "$h" >/dev/null 2>&1; then BTC_HOST="$h"; break; fi;
|
|
done;
|
|
export DAEMON_URL="http://archipelago:$(printenv BITCOIN_RPC_PASS)@${BTC_HOST:-bitcoin-knots}:8332/";
|
|
exec electrumx_server
|
|
secret_env:
|
|
- key: BITCOIN_RPC_PASS
|
|
secret_file: bitcoin-rpc-password
|
|
|
|
dependencies:
|
|
- app_id: bitcoin-knots
|
|
version: ">=26.0"
|
|
- storage: 50Gi
|
|
- bitcoin:archival
|
|
|
|
resources:
|
|
cpu_limit: 0
|
|
memory_limit: 6Gi
|
|
disk_limit: 50Gi
|
|
|
|
security:
|
|
capabilities: [DAC_OVERRIDE]
|
|
readonly_root: false
|
|
network_policy: isolated
|
|
|
|
ports:
|
|
- host: 50001
|
|
container: 50001
|
|
protocol: tcp
|
|
auth: none
|
|
auth_rationale: >-
|
|
Electrum wire protocol over TCP. Electrum wallets speak it directly and cannot hold a session cookie.
|
|
|
|
volumes:
|
|
- type: bind
|
|
source: /var/lib/archipelago/electrumx
|
|
target: /data
|
|
options: [rw]
|
|
|
|
environment:
|
|
- COIN=Bitcoin
|
|
- DB_DIRECTORY=/data
|
|
- SERVICES=tcp://:50001,rpc://0.0.0.0:8000
|
|
- CACHE_MB=1024
|
|
- MAX_SEND=10000000
|
|
|
|
# The ElectrumX dashboard tile is served by the host-networked companion UI
|
|
# (archy-electrs-ui) on port 50002, NOT by this container. Declaring it here
|
|
# lets the catalog generator emit electrumx -> 50002 into GENERATED_APP_PORTS
|
|
# so the tile resolves a launch URL without relying on the hand-maintained
|
|
# override in appSessionConfig.ts (which the generator can clobber). The
|
|
# backend only validates this block — it does not proxy/health-check it.
|
|
interfaces:
|
|
main:
|
|
name: Web UI
|
|
description: ElectrumX server status and connection details
|
|
type: ui
|
|
port: 50002
|
|
protocol: http
|
|
|
|
health_check:
|
|
type: tcp
|
|
endpoint: localhost:50001
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10m
|
|
|
|
bitcoin_integration:
|
|
rpc_access: read-only
|
|
sync_required: true
|
|
pruning_support: false
|