Last active
March 15, 2022 07:46
-
-
Save ubunteroz/c68fdcdbd397b6a2e057b102708d8c6b to your computer and use it in GitHub Desktop.
Akash SDL for Deploying Terra bombay-12 Node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:bullseye AS base | |
RUN apt update && apt install wget -y && apt clean | |
FROM base AS download | |
ENV version=0.5.17 | |
WORKDIR /app | |
RUN wget https://github.com/terra-money/core/releases/download/v${version}/terra_${version}_Linux_x86_64.tar.gz | |
RUN tar xvf terra_${version}_Linux_x86_64.tar.gz | |
RUN mkdir bin && mv ./terrad ./bin/ | |
FROM base | |
COPY --from=download /app/bin/terrad /usr/bin/ | |
COPY terra.sh /usr/bin/ | |
RUN chmod +x /usr/bin/terra.sh | |
CMD [ "/usr/bin/terra.sh" ] | |
EXPOSE 26657 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p /root/.terra/config | |
wget https://raw.githubusercontent.com/terra-money/testnet/master/bombay-12/genesis.json -O /root/.terra/config/genesis.json | |
wget https://raw.githubusercontent.com/terra-money/testnet/master/bombay-12/addrbook.json -O /root/.terra/config/addrbook.json | |
/usr/bin/terrad start --rpc.laddr tcp://0.0.0.0:26657 --x-crisis-skip-assert-invariants |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "2.0" | |
services: | |
terrad: | |
image: ghcr.io/ubunteroz/akash-terrad:0.5.17-4 | |
expose: | |
- port: 26657 | |
as: 26657 | |
to: | |
- global: true | |
profiles: | |
compute: | |
terrad-profile: | |
resources: | |
cpu: | |
units: 2.0 | |
memory: | |
size: 16Gi | |
storage: | |
size: 128Gi | |
placement: | |
westcoast: | |
pricing: | |
terrad-profile: | |
denom: uakt | |
amount: 1000 | |
deployment: | |
terrad: | |
westcoast: | |
profile: terrad-profile | |
count: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment