title | order |
---|---|
Build Requirements |
1 |
For minimum system requirements instances with 2 processor CPU and 4GB memory is recommended. Building code may require larger instances, especially if you want to build a static instance (recompile Rust code).
Node executable may vary between networks, and Option 1 might become obsolete. Network details, configuration and informations can be found on CosmWasm/testnets. Please head over to the repo and explore before starting setting up a node.
Use docker image, or build locally: https://github.com/CosmWasm/wasmd/#dockerized
.
Constructing a wasmd
is a tricky process and involves using Alpine Linux as a build environment and recompiling the Rust dependencies as static libs.
Using Dockerfile is suggested.
-
Clone the project
git clone https://github.com/CosmWasm/wasmd.git && cd wasmd
-
Checkout to testnets version
git checkout vx.x.x
-
Build docker image
docker build . -t wasmd-docker
-
Extract the specific binaries from build environment:
id=$(docker create wasmd-docker) docker cp $id:/usr/bin/wasmd . docker rm -v $id
-
Use the static binaries on any bare metal Linux box
git clone https://github.com/CosmWasm/wasmd.git && cd wasmd
- Checkout to testnets version
git checkout vx.x.x
- Compile dev build:
make build
- Move to binary to desired location