Skip to content

Commit

Permalink
Merge branch 'feat/municipal-inflations-testbranch' into wip/mobix-te…
Browse files Browse the repository at this point in the history
…stnet-config
  • Loading branch information
pbukva committed Jul 24, 2023
2 parents 7d83cfd + 710362b commit 515603b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
16 changes: 15 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM golang:1.18-buster as builder

ARG TARGETARCH

# Set up dependencies
ENV PACKAGES jq curl wget jq file make git

Expand All @@ -12,6 +14,17 @@ COPY . .

RUN make install

RUN bash -c '\
if [[ ${TARGETARCH,,} =~ (arm64|aarch64) ]]; then \
ARCH=aarch64; \
elif [[ ${TARGETARCH,,} =~ amd64 ]]; then \
ARCH=amd64; \
else \
echo ">>>>>>>>> ERROR: Unknown target architecture"; \
exit 1; \
fi && \
ln -s /go/pkg/mod/github.com/\!cosm\!wasm/wasmvm@v*/api/libwasmvm.${ARCH}.so /usr/lib/libwasmvm.${ARCH}.so'

# ##################################

FROM debian:buster as hub
Expand All @@ -22,7 +35,7 @@ ENV PACKAGES jq curl
RUN apt-get update && \
apt-get install -y $PACKAGES

COPY --from=builder /go/pkg/mod/github.com/\!cosm\!wasm/wasmvm@v*/api/libwasmvm.x86_64.so /usr/lib/
COPY --from=builder /usr/lib/libwasmvm.*.so /usr/lib/
COPY --from=builder /go/bin/fetchd /usr/bin/fetchd
COPY entrypoints/entrypoint.sh /usr/bin/entrypoint.sh

Expand Down Expand Up @@ -64,3 +77,4 @@ ENV PYTHONUNBUFFERED=1

ENTRYPOINT [ "/usr/bin/run-localnet-setup.py" ]
CMD []

8 changes: 3 additions & 5 deletions docs/docs/joining-a-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fetchd init <moniker-name> --chain-id <chain id>
Execute the following command to download the latest genesis file:

```bash
curl <rpc url>/genesis | jq '.result.genesis' > ~/.fetchd/config/genesis.json
curl <storage url>/genesis.json --output ~/.fetchd/config/genesis.json
```

Finally connect fetchd to the network by getting it to connect to a seed node for the given network.
Expand All @@ -52,7 +52,7 @@ Finally connect fetchd to the network by getting it to connect to a seed node fo
fetchd start --p2p.seeds=<network seed peers>
```

**Dorado Example**
#### Dorado Example

Less abstractly then, if you wants to connect to the Dorado test net for example, you would need to run the following steps:

Expand All @@ -61,9 +61,7 @@ Less abstractly then, if you wants to connect to the Dorado test net for example
fetchd init my-first-fetch-node --chain-id dorado-1

# genesis
curl https://rpc-dorado.fetch.ai:443 | jq '.result.genesis' > ~/.fetchd/config/genesis.json
# ...or, if that's too large to download from the rpc interface as a single file...
curl https://storage.googleapis.com/fetch-ai-testnet-genesis/genesis-dorado-827201.json --output ~/.fetchd/config/genesis.json
curl https://storage.googleapis.com/fetch-ai-testnet-genesis/genesis-dorado-testing.json --output ~/.fetchd/config/genesis.json

# start
fetchd start --p2p.seeds=eb9b9717975b49a57e62ea93aa4480e091ae0660@connect-dorado.fetch.ai:36556,[email protected]:36557,[email protected]:36558
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/validators/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fetchd tx staking create-validator \
--from=<key_name>
```

**Dorado Example**
### Dorado Example

Before trying to create a validator you should verify that you have some tokens available beforehand. The easiest way to do this is via the [CLI](../../cli-tokens/).

Expand Down

0 comments on commit 515603b

Please sign in to comment.