From bb3b54934ddeb885a2a31db28a948b5ff816abed Mon Sep 17 00:00:00 2001 From: goldsquid Date: Sat, 6 Jun 2026 09:08:49 +0700 Subject: [PATCH] download rollup.json with iniut container --- ...n-testnet-op-geth-archive-leveldb-hash.yml | 22 +++++++++++++++++-- ...ain-testnet-op-geth-pruned-pebble-hash.yml | 22 +++++++++++++++++-- ...ain-testnet-op-geth-pruned-pebble-path.yml | 22 +++++++++++++++++-- 3 files changed, 60 insertions(+), 6 deletions(-) diff --git a/op/geth/hashkeychain-testnet-op-geth-archive-leveldb-hash.yml b/op/geth/hashkeychain-testnet-op-geth-archive-leveldb-hash.yml index 61416752..93c626bd 100644 --- a/op/geth/hashkeychain-testnet-op-geth-archive-leveldb-hash.yml +++ b/op/geth/hashkeychain-testnet-op-geth-archive-leveldb-hash.yml @@ -109,6 +109,21 @@ services: - ${NO_SSL:+traefik.http.routers.hashkeychain-testnet-op-geth-archive-leveldb-hash.rule=Path(`/hashkeychain-testnet-archive`) || Path(`/hashkeychain-testnet-archive/`)} - traefik.http.routers.hashkeychain-testnet-op-geth-archive-leveldb-hash.middlewares=hashkeychain-testnet-op-geth-archive-leveldb-hash-stripprefix, ipallowlist + hashkeychain-testnet-archive-node-init: + image: alpine:3.20 + entrypoint: [/bin/sh, -c] + command: + - | + apk add --no-cache ca-certificates curl + mkdir -p /config + [ ! -f /config/rollup.json ] && curl -fsSL -o /config/rollup.json "https://hashkeychain.s3.ap-southeast-1.amazonaws.com/testnet/rollup.json" + restart: no + networks: + - chains + volumes_from: + - hashkeychain-testnet-archive-node + logging: *logging-defaults + hashkeychain-testnet-archive-node: image: ${HASHKEYCHAIN_NODE_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node}:${HASHKEYCHAIN_TESTNET_NODE_VERSION:-v1.19.0} ports: @@ -140,10 +155,13 @@ services: - OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log - OP_NODE_SYNCMODE=execution-layer - OP_NODE_VERIFIER_L1_CONFS=0 - entrypoint: /bin/sh -c 'mkdir -p /config && [ ! -f /config/rollup.json ] && wget -qO /config/rollup.json "https://hashkeychain.s3.ap-southeast-1.amazonaws.com/testnet/rollup.json"; exec op-node "$@"' -- + entrypoint: [op-node] restart: unless-stopped depends_on: - - hashkeychain-testnet-archive + hashkeychain-testnet-archive-node-init: + condition: service_completed_successfully + hashkeychain-testnet-archive: + condition: service_started networks: - chains volumes: diff --git a/op/geth/hashkeychain-testnet-op-geth-pruned-pebble-hash.yml b/op/geth/hashkeychain-testnet-op-geth-pruned-pebble-hash.yml index c3db5076..9f7bb478 100644 --- a/op/geth/hashkeychain-testnet-op-geth-pruned-pebble-hash.yml +++ b/op/geth/hashkeychain-testnet-op-geth-pruned-pebble-hash.yml @@ -109,6 +109,21 @@ services: - ${NO_SSL:+traefik.http.routers.hashkeychain-testnet-op-geth-pruned-pebble-hash.rule=Path(`/hashkeychain-testnet`) || Path(`/hashkeychain-testnet/`)} - traefik.http.routers.hashkeychain-testnet-op-geth-pruned-pebble-hash.middlewares=hashkeychain-testnet-op-geth-pruned-pebble-hash-stripprefix, ipallowlist + hashkeychain-testnet-node-init: + image: alpine:3.20 + entrypoint: [/bin/sh, -c] + command: + - | + apk add --no-cache ca-certificates curl + mkdir -p /config + [ ! -f /config/rollup.json ] && curl -fsSL -o /config/rollup.json "https://hashkeychain.s3.ap-southeast-1.amazonaws.com/testnet/rollup.json" + restart: no + networks: + - chains + volumes_from: + - hashkeychain-testnet-node + logging: *logging-defaults + hashkeychain-testnet-node: image: ${HASHKEYCHAIN_NODE_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node}:${HASHKEYCHAIN_TESTNET_NODE_VERSION:-v1.19.0} ports: @@ -140,10 +155,13 @@ services: - OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log - OP_NODE_SYNCMODE=execution-layer - OP_NODE_VERIFIER_L1_CONFS=0 - entrypoint: /bin/sh -c 'mkdir -p /config && [ ! -f /config/rollup.json ] && wget -qO /config/rollup.json "https://hashkeychain.s3.ap-southeast-1.amazonaws.com/testnet/rollup.json"; exec op-node "$@"' -- + entrypoint: [op-node] restart: unless-stopped depends_on: - - hashkeychain-testnet + hashkeychain-testnet-node-init: + condition: service_completed_successfully + hashkeychain-testnet: + condition: service_started networks: - chains volumes: diff --git a/op/geth/hashkeychain-testnet-op-geth-pruned-pebble-path.yml b/op/geth/hashkeychain-testnet-op-geth-pruned-pebble-path.yml index 1e5c8f78..e9d1df41 100644 --- a/op/geth/hashkeychain-testnet-op-geth-pruned-pebble-path.yml +++ b/op/geth/hashkeychain-testnet-op-geth-pruned-pebble-path.yml @@ -109,6 +109,21 @@ services: - ${NO_SSL:+traefik.http.routers.hashkeychain-testnet-op-geth-pruned-pebble-path.rule=Path(`/hashkeychain-testnet`) || Path(`/hashkeychain-testnet/`)} - traefik.http.routers.hashkeychain-testnet-op-geth-pruned-pebble-path.middlewares=hashkeychain-testnet-op-geth-pruned-pebble-path-stripprefix, ipallowlist + hashkeychain-testnet-node-init: + image: alpine:3.20 + entrypoint: [/bin/sh, -c] + command: + - | + apk add --no-cache ca-certificates curl + mkdir -p /config + [ ! -f /config/rollup.json ] && curl -fsSL -o /config/rollup.json "https://hashkeychain.s3.ap-southeast-1.amazonaws.com/testnet/rollup.json" + restart: no + networks: + - chains + volumes_from: + - hashkeychain-testnet-node + logging: *logging-defaults + hashkeychain-testnet-node: image: ${HASHKEYCHAIN_NODE_IMAGE:-us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node}:${HASHKEYCHAIN_TESTNET_NODE_VERSION:-v1.19.0} ports: @@ -140,10 +155,13 @@ services: - OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log - OP_NODE_SYNCMODE=execution-layer - OP_NODE_VERIFIER_L1_CONFS=0 - entrypoint: /bin/sh -c 'mkdir -p /config && [ ! -f /config/rollup.json ] && wget -qO /config/rollup.json "https://hashkeychain.s3.ap-southeast-1.amazonaws.com/testnet/rollup.json"; exec op-node "$@"' -- + entrypoint: [op-node] restart: unless-stopped depends_on: - - hashkeychain-testnet + hashkeychain-testnet-node-init: + condition: service_completed_successfully + hashkeychain-testnet: + condition: service_started networks: - chains volumes: