c0be2330b0
* Add validator Docker container * Add Docker contract upload container Signed-off-by: Bogdan-Ștefan Neacșu <bogdan@nymtech.net> * Add docker-compose for validators and building deploy container * One Docker image for each component * Switch from hal to punk * Add nym wallet docker * Point web browser to the correct IP * Better message parsing * Rebase on the wallet merge * Rename upload contract entrypoint script * Remove unnecessary bash magic * Put the contract image in the docker dir * Put the wallet-web image in the docker dir * Add some read-only specifiers to volumes * Move typescript container code in docker directory Also update lock files, as the containers work on a volume binded to the local filesystem * Fix volume permissions * Add mnemonic echo * Remove magic sleep value from secondary validator * Adding README.md to the docker directory * Change ENTRYPOINT to CMD for the typescript client image
22 lines
824 B
Bash
Executable File
22 lines
824 B
Bash
Executable File
#!/bin/sh
|
|
|
|
WASMD_VERSION=v0.17.0
|
|
BECH32_PREFIX=punk
|
|
|
|
git clone https://github.com/CosmWasm/wasmd.git
|
|
cd wasmd
|
|
git checkout "${WASMD_VERSION}"
|
|
mkdir build
|
|
go build \
|
|
-o build/nymd -mod=readonly -tags "netgo,ledger" \
|
|
-ldflags "-X github.com/cosmos/cosmos-sdk/version.Name=nymd \
|
|
-X github.com/cosmos/cosmos-sdk/version.AppName=nymd \
|
|
-X github.com/CosmWasm/wasmd/app.NodeDir=.nymd \
|
|
-X github.com/cosmos/cosmos-sdk/version.Version=${WASMD_VERSION} \
|
|
-X github.com/cosmos/cosmos-sdk/version.Commit=1920f80d181adbeaedac1eeea1c1c6e1704d3e49 \
|
|
-X github.com/CosmWasm/wasmd/app.Bech32Prefix=${BECH32_PREFIX} \
|
|
-X 'github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger'" \
|
|
-trimpath ./cmd/wasmd
|
|
WASMVM_SO=$(ldd build/nymd | grep libwasmvm.so | awk '{ print $3 }')
|
|
cp "${WASMVM_SO}" build/
|