Compare commits

..

2 Commits

13 changed files with 52 additions and 81 deletions

View File

@@ -45,7 +45,7 @@ services:
arc-mainnet-archive-sockets-init: arc-mainnet-archive-sockets-init:
image: debian:bookworm-slim image: debian:bookworm-slim
entrypoint: [/bin/sh, -c] entrypoint: [/bin/sh, -c]
command: [rm -f /sockets/*.ipc && chown 999:999 /sockets] command: [chown 999:999 /sockets]
restart: no restart: no
depends_on: depends_on:
arc-mainnet-archive-consensus-init: arc-mainnet-archive-consensus-init:

View File

@@ -45,7 +45,7 @@ services:
arc-mainnet-sockets-init: arc-mainnet-sockets-init:
image: debian:bookworm-slim image: debian:bookworm-slim
entrypoint: [/bin/sh, -c] entrypoint: [/bin/sh, -c]
command: [rm -f /sockets/*.ipc && chown 999:999 /sockets] command: [chown 999:999 /sockets]
restart: no restart: no
depends_on: depends_on:
arc-mainnet-consensus-init: arc-mainnet-consensus-init:

View File

@@ -45,7 +45,7 @@ services:
arc-testnet-archive-sockets-init: arc-testnet-archive-sockets-init:
image: debian:bookworm-slim image: debian:bookworm-slim
entrypoint: [/bin/sh, -c] entrypoint: [/bin/sh, -c]
command: [rm -f /sockets/*.ipc && chown 999:999 /sockets] command: [chown 999:999 /sockets]
restart: no restart: no
depends_on: depends_on:
arc-testnet-archive-consensus-init: arc-testnet-archive-consensus-init:

View File

@@ -45,7 +45,7 @@ services:
arc-testnet-sockets-init: arc-testnet-sockets-init:
image: debian:bookworm-slim image: debian:bookworm-slim
entrypoint: [/bin/sh, -c] entrypoint: [/bin/sh, -c]
command: [rm -f /sockets/*.ipc && chown 999:999 /sockets] command: [chown 999:999 /sockets]
restart: no restart: no
depends_on: depends_on:
arc-testnet-consensus-init: arc-testnet-consensus-init:

View File

@@ -45,7 +45,7 @@ services:
arc-testnet-sockets-init: arc-testnet-sockets-init:
image: debian:bookworm-slim image: debian:bookworm-slim
entrypoint: [/bin/sh, -c] entrypoint: [/bin/sh, -c]
command: [rm -f /sockets/*.ipc && chown 999:999 /sockets] command: [chown 999:999 /sockets]
restart: no restart: no
depends_on: depends_on:
arc-testnet-consensus-init: arc-testnet-consensus-init:

View File

@@ -1,64 +1,49 @@
#!/bin/sh #!/bin/sh
# haqq entrypoint — family C, cosmos app with built-in EVM JSON-RPC (C2).
# Uses the shared cometbft-common.sh helpers and injects official mainnet seeds.
set -e
. /usr/local/bin/cometbft-common.sh
set -e # Exit on failure HOME_DIR="/root/.haqqd"
CONFIG_DIR="$HOME_DIR/config"
CHAINID="${CHAINID:-haqq_11235-1}"
CHAINNAME="${CHAINNAME:-mainnet}"
API="${API:-eth,txpool,net,debug,web3}"
GENESIS_URL="${GENESIS_URL:-https://raw.githubusercontent.com/haqq-network/${CHAINNAME}/master/genesis.json}"
ADDRBOOK_URL="${ADDRBOOK_URL:-https://raw.githubusercontent.com/haqq-network/${CHAINNAME}/master/addrbook.json}"
echo "MONIKER: $MONIKER" # Official HAQQ mainnet seeds
SEEDS="861e5892470275a394ebab407e8d62b1931843d3@192.248.181.17:26656,e1b058e5cfa2b836ddaa496b10911da62dcf182e@haqq-seed-de.allnodes.me:26656,e726816f42831689eab9378d5d577f1d06d25716@haqq-seed-us.allnodes.me:26656,0533e20e65912f72f2ad88a4c91eefbc634212d7@haqq-sync.rpc.p2p.world:26656,c45991e0098b9cacb8603caf4e1cdb7e6e5f87c0@eu.seed.haqq.network:26656,e37cb47590ba46b503269ef255873e9698244d8b@us.seed.haqq.network:26656,c593e93e1fb8be8b48d4e7bab514a227aa620bf8@as.seed.haqq.network:26656,0265238d4845e041868d610c100b88f485eeddfb@rpc.haqq.nodestake.top:666"
CHAINID=${CHAINID:-haqq_11235-1} ct_apk curl
CHAINNAME=${CHAINNAME:-mainnet}
API=${API:-eth,net,web3}
CONFIG_DIR="/root/.haqqd/config" if haqqd init "$MONIKER" --chain-id "$CHAINID" --home "$HOME_DIR"; then
ct_log "fresh init; fetching config"
# Create config directory ct_fetch "$GENESIS_URL" "$CONFIG_DIR/genesis.json" required
mkdir -p "$CONFIG_DIR" ct_fetch "$ADDRBOOK_URL" "$CONFIG_DIR/addrbook.json" optional
ct_localize_home "$CONFIG_DIR"
P2P_STRING="tcp:\\/\\/0\\.0\\.0\\.0\\:${P2P_PORT:-10465}" ct_set_min_gas_prices "$CONFIG_DIR/app.toml" "0.01hqq"
NAT_STRING="${IP}:${P2P_PORT:-10465}"
env
# this goes first because it won't overwrite shit
apk add curl
if [ $? -ne 0 ]; then exit 1; fi
if haqqd init ${MONIKER} --chain-id ${CHAINID} --home /root/.haqqd/; then
# Define variables
GENESIS_URL="https://raw.githubusercontent.com/haqq-network/${CHAINNAME}/master/genesis.json"
ADDRESSBOOK_URL="https://raw.githubusercontent.com/haqq-network/${CHAINNAME}/master/addrbook.json"
# Download config files
curl -sL "$GENESIS_URL" -o "$CONFIG_DIR/genesis.json"
curl -sL "$ADDRESSBOOK_URL" -o "$CONFIG_DIR/addressbook.json"
# somehow it's better to make home static to /root
sed -i 's|~/|/root/|g' "$CONFIG_DIR/config.toml"
sed -i 's|~/|/root/|g' "$CONFIG_DIR/app.toml"
else else
echo "Already initialized, continuing!" >&2 ct_log "already initialized, continuing"
fi fi
# Enable JSON-RPC with correct settings
# apply a port change to the config sed -i "/^\[json-rpc\]/,/^\[/{s|^enable = .*|enable = true|}" "$CONFIG_DIR/app.toml"
sed -i "/^\[p2p\]/,/^\[/{s|^laddr = .*|laddr = \"$P2P_STRING\"|}" "$CONFIG_DIR/config.toml"
#sed -i "s/^laddr = \".*\"/laddr = \"$P2P_STRING\"/" "$CONFIG_DIR/config.toml"
sed -i "/^\[p2p\]/,/^\[/{s|^external_address = .*|external_address = \"$NAT_STRING\"|}" "$CONFIG_DIR/config.toml"
#sed -i 's/minimum-gas-prices = ""/minimum-gas-prices = "0.01hqq"/g' $CONFIG_DIR/app.toml
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $CONFIG_DIR/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $CONFIG_DIR/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"19\"/" $CONFIG_DIR/app.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $CONFIG_DIR/config.toml
sed -i "/^\[json-rpc\]/,/^\[/{s|^address = .*|address = \"0.0.0.0:8545\"|}" "$CONFIG_DIR/app.toml" sed -i "/^\[json-rpc\]/,/^\[/{s|^address = .*|address = \"0.0.0.0:8545\"|}" "$CONFIG_DIR/app.toml"
sed -i "/^\[json-rpc\]/,/^\[/{s|^ws-address = .*|ws-address = \"0.0.0.0:8546\"|}" "$CONFIG_DIR/app.toml" sed -i "/^\[json-rpc\]/,/^\[/{s|^ws-address = .*|ws-address = \"0.0.0.0:8546\"|}" "$CONFIG_DIR/app.toml"
sed -i "/^\[json-rpc\]/,/^\[/{s|^metrics-address = .*|metrics-address = \"0.0.0.0:6065\"|}" "$CONFIG_DIR/app.toml" sed -i "/^\[json-rpc\]/,/^\[/{s|^metrics-address = .*|metrics-address = \"0.0.0.0:6065\"|}" "$CONFIG_DIR/app.toml"
sed -i "/^\[json-rpc\]/,/^\[/{s|^api = .*|api = \"$API\"|}" "$CONFIG_DIR/app.toml" sed -i "/^\[json-rpc\]/,/^\[/{s|^api = .*|api = \"$API\"|}" "$CONFIG_DIR/app.toml"
# Update moniker if set # Pruning + indexing settings
if [ -n "$MONIKER" ] && [ -f "$CONFIG_DIR/config.toml" ]; then sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" "$CONFIG_DIR/app.toml"
sed -i "s/^moniker = \".*\"/moniker = \"$MONIKER\"/" "$CONFIG_DIR/config.toml" sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" "$CONFIG_DIR/app.toml"
fi sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"19\"/" "$CONFIG_DIR/app.toml"
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" "$CONFIG_DIR/config.toml"
exec haqqd start --chain-id ${CHAINID} $@ # P2P: bind 0.0.0.0, advertise IP + port, inject official seeds
ct_patch_p2p "$CONFIG_DIR/config.toml" "$IP" "${P2P_PORT:-10465}"
ct_merge_seeds "$CONFIG_DIR/config.toml" "$SEEDS"
ct_set_moniker "$CONFIG_DIR/config.toml" "$MONIKER"
ct_seed_priv_validator_state "$HOME_DIR"
exec haqqd start --chain-id "$CHAINID" "$@"

View File

@@ -267,7 +267,7 @@ services:
- EIGENDA_PROXY_S3_CREDENTIAL_TYPE=public - EIGENDA_PROXY_S3_CREDENTIAL_TYPE=public
- EIGENDA_PROXY_S3_ENDPOINT=storage.googleapis.com - EIGENDA_PROXY_S3_ENDPOINT=storage.googleapis.com
- EIGENDA_PROXY_S3_PATH=blobs/ - EIGENDA_PROXY_S3_PATH=blobs/
- EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V1,V2 - EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V2
- EIGENDA_PROXY_STORAGE_FALLBACK_TARGETS=s3 - EIGENDA_PROXY_STORAGE_FALLBACK_TARGETS=s3
restart: unless-stopped restart: unless-stopped
networks: networks:

View File

@@ -266,7 +266,7 @@ services:
- EIGENDA_PROXY_S3_CREDENTIAL_TYPE=public - EIGENDA_PROXY_S3_CREDENTIAL_TYPE=public
- EIGENDA_PROXY_S3_ENDPOINT=storage.googleapis.com - EIGENDA_PROXY_S3_ENDPOINT=storage.googleapis.com
- EIGENDA_PROXY_S3_PATH=blobs/ - EIGENDA_PROXY_S3_PATH=blobs/
- EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V1,V2 - EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V2
- EIGENDA_PROXY_STORAGE_FALLBACK_TARGETS=s3 - EIGENDA_PROXY_STORAGE_FALLBACK_TARGETS=s3
restart: unless-stopped restart: unless-stopped
networks: networks:

View File

@@ -264,7 +264,7 @@ services:
- EIGENDA_PROXY_S3_CREDENTIAL_TYPE=public - EIGENDA_PROXY_S3_CREDENTIAL_TYPE=public
- EIGENDA_PROXY_S3_ENDPOINT=storage.googleapis.com - EIGENDA_PROXY_S3_ENDPOINT=storage.googleapis.com
- EIGENDA_PROXY_S3_PATH=blobs/ - EIGENDA_PROXY_S3_PATH=blobs/
- EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V1,V2 - EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V2
- EIGENDA_PROXY_STORAGE_FALLBACK_TARGETS=s3 - EIGENDA_PROXY_STORAGE_FALLBACK_TARGETS=s3
restart: unless-stopped restart: unless-stopped
networks: networks:

View File

@@ -264,7 +264,7 @@ services:
- EIGENDA_PROXY_S3_CREDENTIAL_TYPE=public - EIGENDA_PROXY_S3_CREDENTIAL_TYPE=public
- EIGENDA_PROXY_S3_ENDPOINT=storage.googleapis.com - EIGENDA_PROXY_S3_ENDPOINT=storage.googleapis.com
- EIGENDA_PROXY_S3_PATH=blobs/ - EIGENDA_PROXY_S3_PATH=blobs/
- EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V1,V2 - EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V2
- EIGENDA_PROXY_STORAGE_FALLBACK_TARGETS=s3 - EIGENDA_PROXY_STORAGE_FALLBACK_TARGETS=s3
restart: unless-stopped restart: unless-stopped
networks: networks:

View File

@@ -45,9 +45,6 @@ services:
ulimits: ulimits:
nofile: 1048576 # Max open files (for RPC/WS connections) nofile: 1048576 # Max open files (for RPC/WS connections)
user: root user: root
ports:
- 13290:13290
- 13290:13290/udp
expose: expose:
- 8545 - 8545
- 6060 - 6060
@@ -64,7 +61,6 @@ services:
- GETH_ROLLUP_SEQUENCERHTTP=https://rpc.mainnet.frax.com - GETH_ROLLUP_SEQUENCERHTTP=https://rpc.mainnet.frax.com
entrypoint: /bin/sh -c '[ -f /config/genesis.json ] && geth --db.engine=leveldb --gcmode=archive --datadir /data init --state.scheme=hash /config/genesis.json; [ -f /config/static-nodes.json ] && cp -f /config/static-nodes.json /data/static-nodes.json; exec geth "$@"' -- entrypoint: /bin/sh -c '[ -f /config/genesis.json ] && geth --db.engine=leveldb --gcmode=archive --datadir /data init --state.scheme=hash /config/genesis.json; [ -f /config/static-nodes.json ] && cp -f /config/static-nodes.json /data/static-nodes.json; exec geth "$@"' --
command: command:
- --bootnodes=enr:-J24QI8QR7VIgvQFuvLl09b9ocugoQ1WkS_AOMWKFgNX48-4P1hjgDKGeMFXZmKtfjYA2aEehxKT066riaktnxhh92OGAY5Sw_QsgmlkgnY0gmlwhCztZu2Hb3BzdGFja4P8AQCJc2VjcDI1NmsxoQM2KM0mkdH97Ze8AqwxLeqc934PKj8-xoKsyP6mAptWwIN0Y3CCdl2DdWRwgnZd,enr:-J24QGD1J-g2EPY9b7XiuwLhIoGocVp2qx2gWSfDI_CdftiPSHlgi7G6LtzkQlDskuSvRj4OXTg3vXLISubphXNNhqyGAY5Sw8GxgmlkgnY0gmlwhCzW_iGHb3BzdGFja4P8AQCJc2VjcDI1NmsxoQPvMYlJHJUsEyciuJCTkKHLE2ogZ6cs2xuPI28CGq0CTIN0Y3CCdl2DdWRwgnZd,enr:-J24QCA5I3xroUXt7Ge_Kf04VCRBnI-GbZeyBxOkkpIDGGLrVsonrbngQG1hAEnufRb1TgS6sNFCGtaZ2ZpRx7AgciGGAY5SxEy0gmlkgnY0gmlwhCLzRQyHb3BzdGFja4P8AQCJc2VjcDI1NmsxoQOaHzrtPQWYcwAcFJWFrbGlbNUsBC0VEhCcH02RbgEIwIN0Y3CCdl2DdWRwgnZd
- --datadir=/data - --datadir=/data
- --db.engine=leveldb - --db.engine=leveldb
- --gcmode=archive - --gcmode=archive
@@ -72,9 +68,8 @@ services:
- --metrics - --metrics
- --metrics.addr=0.0.0.0 - --metrics.addr=0.0.0.0
- --metrics.port=6060 - --metrics.port=6060
- --nat=extip:${IP}
- --networkid=252 - --networkid=252
- --port=13290 - --nodiscover
- --rpc.gascap=600000000 - --rpc.gascap=600000000
- --rpc.txfeecap=0 - --rpc.txfeecap=0
- --state.scheme=hash - --state.scheme=hash
@@ -145,7 +140,7 @@ services:
- OP_NODE_RPC_ADDR=0.0.0.0 - OP_NODE_RPC_ADDR=0.0.0.0
- OP_NODE_RPC_PORT=9545 - OP_NODE_RPC_PORT=9545
- OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log - OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log
- OP_NODE_SYNCMODE=execution-layer - OP_NODE_SYNCMODE=consensus-layer
- OP_NODE_VERIFIER_L1_CONFS=0 - OP_NODE_VERIFIER_L1_CONFS=0
entrypoint: [op-node] entrypoint: [op-node]
restart: unless-stopped restart: unless-stopped

View File

@@ -45,9 +45,6 @@ services:
ulimits: ulimits:
nofile: 1048576 # Max open files (for RPC/WS connections) nofile: 1048576 # Max open files (for RPC/WS connections)
user: root user: root
ports:
- 10282:10282
- 10282:10282/udp
expose: expose:
- 8545 - 8545
- 6060 - 6060
@@ -64,7 +61,6 @@ services:
- GETH_ROLLUP_SEQUENCERHTTP=https://rpc.mainnet.frax.com - GETH_ROLLUP_SEQUENCERHTTP=https://rpc.mainnet.frax.com
entrypoint: /bin/sh -c '[ -f /config/genesis.json ] && geth --db.engine=pebble --gcmode=full --datadir /data init --state.scheme=path /config/genesis.json; [ -f /config/static-nodes.json ] && cp -f /config/static-nodes.json /data/static-nodes.json; exec geth "$@"' -- entrypoint: /bin/sh -c '[ -f /config/genesis.json ] && geth --db.engine=pebble --gcmode=full --datadir /data init --state.scheme=path /config/genesis.json; [ -f /config/static-nodes.json ] && cp -f /config/static-nodes.json /data/static-nodes.json; exec geth "$@"' --
command: command:
- --bootnodes=enr:-J24QI8QR7VIgvQFuvLl09b9ocugoQ1WkS_AOMWKFgNX48-4P1hjgDKGeMFXZmKtfjYA2aEehxKT066riaktnxhh92OGAY5Sw_QsgmlkgnY0gmlwhCztZu2Hb3BzdGFja4P8AQCJc2VjcDI1NmsxoQM2KM0mkdH97Ze8AqwxLeqc934PKj8-xoKsyP6mAptWwIN0Y3CCdl2DdWRwgnZd,enr:-J24QGD1J-g2EPY9b7XiuwLhIoGocVp2qx2gWSfDI_CdftiPSHlgi7G6LtzkQlDskuSvRj4OXTg3vXLISubphXNNhqyGAY5Sw8GxgmlkgnY0gmlwhCzW_iGHb3BzdGFja4P8AQCJc2VjcDI1NmsxoQPvMYlJHJUsEyciuJCTkKHLE2ogZ6cs2xuPI28CGq0CTIN0Y3CCdl2DdWRwgnZd,enr:-J24QCA5I3xroUXt7Ge_Kf04VCRBnI-GbZeyBxOkkpIDGGLrVsonrbngQG1hAEnufRb1TgS6sNFCGtaZ2ZpRx7AgciGGAY5SxEy0gmlkgnY0gmlwhCLzRQyHb3BzdGFja4P8AQCJc2VjcDI1NmsxoQOaHzrtPQWYcwAcFJWFrbGlbNUsBC0VEhCcH02RbgEIwIN0Y3CCdl2DdWRwgnZd
- --datadir=/data - --datadir=/data
- --db.engine=pebble - --db.engine=pebble
- --gcmode=full - --gcmode=full
@@ -72,13 +68,12 @@ services:
- --metrics - --metrics
- --metrics.addr=0.0.0.0 - --metrics.addr=0.0.0.0
- --metrics.port=6060 - --metrics.port=6060
- --nat=extip:${IP}
- --networkid=252 - --networkid=252
- --port=10282 - --nodiscover
- --rpc.gascap=600000000 - --rpc.gascap=600000000
- --rpc.txfeecap=0 - --rpc.txfeecap=0
- --state.scheme=path - --state.scheme=path
- --syncmode=snap - --syncmode=full
- --http - --http
- --http.addr=0.0.0.0 - --http.addr=0.0.0.0
- --http.api=eth,net,web3,debug,admin,txpool,engine - --http.api=eth,net,web3,debug,admin,txpool,engine
@@ -145,7 +140,7 @@ services:
- OP_NODE_RPC_ADDR=0.0.0.0 - OP_NODE_RPC_ADDR=0.0.0.0
- OP_NODE_RPC_PORT=9545 - OP_NODE_RPC_PORT=9545
- OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log - OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log
- OP_NODE_SYNCMODE=execution-layer - OP_NODE_SYNCMODE=consensus-layer
- OP_NODE_VERIFIER_L1_CONFS=0 - OP_NODE_VERIFIER_L1_CONFS=0
entrypoint: [op-node] entrypoint: [op-node]
restart: unless-stopped restart: unless-stopped

View File

@@ -9,17 +9,13 @@ RUN chmod +x /usr/local/bin/init.sh
ARG ZERO_GRAVITY_VERSION ARG ZERO_GRAVITY_VERSION
ARG ZERO_GRAVITY_CHAIN_SPEC ARG ZERO_GRAVITY_CHAIN_SPEC
RUN if [ "${ZERO_GRAVITY_CHAIN_SPEC}" = "aristotle" ]; then \ RUN if [ "${ZERO_GRAVITY_CHAIN_SPEC}" = "aristotle" ]; then \
curl -sL https://github.com/0gfoundation/0gchain-Aristotle/releases/download/v${ZERO_GRAVITY_VERSION}/aristotle-v${ZERO_GRAVITY_VERSION}.tar.gz -o /tmp/aristotle-v${ZERO_GRAVITY_VERSION}.tar.gz; \ curl -sL https://github.com/0gfoundation/0gchain-Aristotle/releases/download/${ZERO_GRAVITY_VERSION}/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz -o /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz; \
else \ else \
curl -sL https://github.com/0gfoundation/0gchain-NG/releases/download/v${ZERO_GRAVITY_VERSION}/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz -o /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz; \ curl -sL https://github.com/0gfoundation/0gchain-NG/releases/download/v${ZERO_GRAVITY_VERSION}/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz -o /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz; \
fi fi
RUN if [ "${ZERO_GRAVITY_CHAIN_SPEC}" = "aristotle" ]; then \ RUN tar -xzf /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz -C /tmp
tar -xzf /tmp/aristotle-v${ZERO_GRAVITY_VERSION}.tar.gz -C /tmp; \
else \
tar -xzf /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz -C /tmp; \
fi
RUN if [ "${ZERO_GRAVITY_CHAIN_SPEC}" = "galileo" ]; then \ RUN if [ "${ZERO_GRAVITY_CHAIN_SPEC}" = "galileo" ]; then \
mv /tmp/galileo-v${ZERO_GRAVITY_VERSION}/rpc /0g; \ mv /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}/rpc /0g; \
else \ else \
mkdir -p /0g && \ mkdir -p /0g && \
cp -a /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}/* /0g/ 2>/dev/null || true; \ cp -a /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}/* /0g/ 2>/dev/null || true; \