with bootnodes
This commit is contained in:
@@ -9,9 +9,9 @@ ARG HL_VISOR_URL_MAINNET=https://binaries.hyperliquid.xyz/Mainnet/hl-visor
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
# Install curl
|
||||
# Install required tools
|
||||
RUN apt-get update && \
|
||||
apt-get install -y curl gnupg && \
|
||||
apt-get install -y curl gnupg gawk && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN curl -o /root/pub_key.asc $PUB_KEY_URL \
|
||||
@@ -20,6 +20,14 @@ RUN curl -o /root/pub_key.asc $PUB_KEY_URL \
|
||||
# Configure chain to testnet
|
||||
RUN echo "{\"chain\": \"${CHAIN_NAME}\"}" > /root/visor.json
|
||||
|
||||
RUN echo '#!/bin/bash\n\
|
||||
IPS=$(echo "$ROOT_NODE_IPS" | tr "," "\n" | awk \047{print "{\"Ip\": \""$1"\"}"}\047 | paste -sd,)\n\
|
||||
cat > /root/override_gossip_config.json << EOF\n\
|
||||
{"root_node_ips": [$IPS], "try_new_peers": false, "chain": "'${CHAIN_NAME}'"}\n\
|
||||
EOF\n\
|
||||
exec /root/hl-visor run-non-validator --replica-cmds-style recent-actions --serve-evm-rpc' > /root/entrypoint.sh && \
|
||||
chmod +x /root/entrypoint.sh
|
||||
|
||||
# Download and verify hl-visor binary
|
||||
RUN if [ "$CHAIN_NAME" = "Testnet" ]; then \
|
||||
curl -o /root/hl-visor $HL_VISOR_URL_TESTNET; \
|
||||
@@ -35,4 +43,4 @@ VOLUME /root/hl/data
|
||||
EXPOSE 4000-4010
|
||||
|
||||
# Run a non-validating node
|
||||
ENTRYPOINT ["/root/hl-visor", "run-non-validator", "--replica-cmds-style", "recent-actions", "--serve-evm-rpc"]
|
||||
ENTRYPOINT ["/root/entrypoint.sh"]
|
||||
@@ -56,6 +56,8 @@ services:
|
||||
- 4002:4002/udp
|
||||
expose:
|
||||
- 3001
|
||||
environment:
|
||||
- ROOT_NODE_IPS=35.213.122.164,35.213.89.139,20.188.6.225,74.226.182.22,180.189.55.18,180.189.55.19,46.105.222.166,91.134.41.52,57.180.50.253,54.248.41.39,52.68.71.160,13.114.116.44,199.254.199.190,199.254.199.247,45.32.32.21,157.90.207.92,148.251.76.7,109.123.230.189,31.223.196.172,31.223.196.238,91.134.71.237,57.129.140.247,160.202.131.51,72.46.87.141,199.254.199.12,199.254.199.54,45.250.255.111,109.94.99.131,47.74.39.46,8.211.133.129
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
|
||||
@@ -56,6 +56,8 @@ services:
|
||||
- 4002:4002/udp
|
||||
expose:
|
||||
- 3001
|
||||
environment:
|
||||
- ROOT_NODE_IPS=
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 5m
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user