download rollup.json with iniut container

This commit is contained in:
goldsquid
2026-06-06 09:08:49 +07:00
parent d5f755629f
commit bb3b54934d
3 changed files with 60 additions and 6 deletions

View File

@@ -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:

View File

@@ -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:

View File

@@ -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: