Skip to content

Instantly share code, notes, and snippets.

@jbn
Created September 25, 2020 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbn/e1346d02f94fc8357eaa69ef1ee9caa5 to your computer and use it in GitHub Desktop.
Save jbn/e1346d02f94fc8357eaa69ef1ee9caa5 to your computer and use it in GitHub Desktop.
An attempt to build akash from scratch and set up a validator
FROM golang:1.14.9-stretch
# See: https://docs.akash.network/validator-guides/gentxo
RUN cd $GOPATH/src && mkdir -p github.com/ovrclk && \
cd github.com/ovrclk && \
git clone https://github.com/ovrclk/akash.git && \
cd akash && \
MAINNET=true git checkout v0.8.1 && \
make deps-install && \
make install
# https://docs.akash.network/validator-guides/join-the-testnet#setting-up-a-new-node
ARG MONIKER
# Using 0.8.1 and 0.8.2 gives,
# ERROR: error validating genesis file /root/.akashd/config/genesis.json: failed to unmarshal auth
# genesis state: cannot parse disfix JSON wrapper: json: cannot unmarshal string into Go value
# of type amino.disfixWrapper
RUN akashd init $MONIKER && \
sed -i 's/minimum-gas-prices = ""/minimum-gas-prices = "0.025uakt"/' ~/.akashd/config/app.toml && \
curl -s https://raw.githubusercontent.com/ovrclk/net/master/latest/genesis.json > $HOME/.akashd/config/genesis.json && \
akashd validate-genesis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment