feat: configure Sonr testnet environment

This commit is contained in:
Prad Nukala 2024-08-28 20:39:56 -04:00
parent 945e748b0e
commit 7ba09cc345

View File

@ -40,7 +40,7 @@ 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 \
@ -64,6 +64,6 @@ EXPOSE 1317 26656 26657 9090 9091 8080
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"]