mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
feat: configure Sonr testnet environment
This commit is contained in:
parent
945e748b0e
commit
7ba09cc345
38
Dockerfile
38
Dockerfile
@ -40,30 +40,30 @@ RUN apk add --no-cache curl make bash jq sed
|
|||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV CHAIN_ID=local-1 \
|
ENV CHAIN_ID=sonr-testnet-1 \
|
||||||
HOME_DIR=/root/.core \
|
HOME_DIR=/root/.core \
|
||||||
BINARY=sonrd \
|
BINARY=sonrd \
|
||||||
DENOM=usnr \
|
DENOM=usnr \
|
||||||
KEYRING=test \
|
KEYRING=test \
|
||||||
KEY=user1 \
|
KEY=user1 \
|
||||||
KEY2=user2 \
|
KEY2=user2 \
|
||||||
CLEAN=true \
|
CLEAN=true \
|
||||||
RPC=26657 \
|
RPC=26657 \
|
||||||
REST=1317 \
|
REST=1317 \
|
||||||
PROFF=6060 \
|
PROFF=6060 \
|
||||||
P2P=26656 \
|
P2P=26656 \
|
||||||
GRPC=9090 \
|
GRPC=9090 \
|
||||||
GRPC_WEB=9091 \
|
GRPC_WEB=9091 \
|
||||||
ROSETTA=8080 \
|
ROSETTA=8080 \
|
||||||
BLOCK_TIME=5s
|
BLOCK_TIME=5s
|
||||||
|
|
||||||
# Expose ports
|
# Expose ports
|
||||||
EXPOSE 1317 26656 26657 9090 9091 8080
|
EXPOSE 1317 26656 26657 9090 9091 8080
|
||||||
|
|
||||||
# Create entrypoint script
|
# Create entrypoint script
|
||||||
RUN echo '#!/bin/sh' > /usr/local/bin/entrypoint.sh && \
|
RUN echo '#!/bin/sh' > /usr/local/bin/entrypoint.sh && \
|
||||||
echo 'set -e' >> /usr/local/bin/entrypoint.sh && \
|
echo 'set -e' >> /usr/local/bin/entrypoint.sh && \
|
||||||
echo 'bash /usr/local/bin/test_node.sh' >> /usr/local/bin/entrypoint.sh && \
|
echo 'bash /usr/local/bin/test_node.sh' >> /usr/local/bin/entrypoint.sh && \
|
||||||
chmod +x /usr/local/bin/entrypoint.sh
|
mod +x /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user