Skip to content

Instantly share code, notes, and snippets.

@jbn
Created September 25, 2020 20:08
Show Gist options
  • Save jbn/e1346d02f94fc8357eaa69ef1ee9caa5 to your computer and use it in GitHub Desktop.
Save jbn/e1346d02f94fc8357eaa69ef1ee9caa5 to your computer and use it in GitHub Desktop.

Revisions

  1. jbn created this gist Sep 25, 2020.
    22 changes: 22 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    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