Minimal example making webpack and wasm/Emscripten work together.
Build instructions:
- Clone this gist
npm install
npm start
- Open
http://localhost:8080
- Look at console
# start a server on Digital Ocean | |
# https://docs.docker.com/machine/drivers/digital-ocean/ | |
docker-machine create \ | |
--driver digitalocean \ | |
--digitalocean-access-token <YOUR API KEY> \ | |
--digitalocean-size 2gb \ | |
reaction | |
# tell Docker to run commands on that server |
Requirements: | |
- nmcli (Network Manager) | |
- iptables | |
Server 1 external ip: 1.1.1.1 | |
Server 2 external ip: 2.2.2.2 | |
GRE IFNAME: gre1 | |
Server 1 gre: |
{ | |
"type": "auth/StdTx", | |
"value": { | |
"msg": [ | |
{ | |
"type": "cosmos-sdk/MsgCreateValidator", | |
"value": { | |
"Description": { | |
"moniker": "layover run", | |
"identity": "", |
Minimal example making webpack and wasm/Emscripten work together.
Build instructions:
npm install
npm start
http://localhost:8080
#!/bin/bash | |
set -euo pipefail | |
openssl req -new -text -passout pass:abcd -subj /CN=localhost -out server.req | |
openssl rsa -in privkey.pem -passin pass:abcd -out server.key | |
openssl req -x509 -in server.req -text -key server.key -out server.crt | |
chmod 600 server.key | |
chown 70 server.key | |
docker run -d --name postgres -v $PWD/server.crt:/var/lib/postgresql/server.crt:ro -v $PWD/server.key:/var/lib/postgresql/server.key:ro postgres:11-alpine -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key |
{ | |
"chain_id": "iov-babynet", | |
"genesis_time": "2019-09-25T08:00:00Z", | |
"consensus_params": { | |
"block": { | |
"max_bytes": "500000", | |
"max_gas": "-1", | |
"time_iota_ms": "1000" | |
}, | |
"evidence": { |
sudo su | |
# update /etc/systemd/system/iovns.env with the patched bnsd artifact... | |
sed --in-place 's!IMAGE_IOVNS=.*!IMAGE_IOVNS=https://github.com/iov-one/weave/releases/download/v0.21.1/bnsd-0.21.1-linux-amd64.tar.gz!' /etc/systemd/system/iovns.env | |
# ...pick-up env vars... | |
set -o allexport ; source /etc/systemd/system/iovns.env ; set +o allexport # pick-up env vars | |
cd ${DIR_IOVNS} && rm bnsd* |
{ | |
"chain_id": "iov-clapnet", | |
"genesis_time": "2019-10-02T08:00:00Z", | |
"consensus_params": { | |
"block": { | |
"max_bytes": "500000", | |
"max_gas": "-1", | |
"time_iota_ms": "1000" | |
}, | |
"evidence": { |
sudo su | |
# update /etc/systemd/system/iovns.env with the patched artifacts... | |
sed --in-place 's!IMAGE_IOVNS=.*!IMAGE_IOVNS=https://github.com/iov-one/weave/releases/download/v0.21.2/bnsd-0.21.2-linux-amd64.tar.gz!' /etc/systemd/system/iovns.env | |
sed --in-place 's!IMAGE_TM=.*!IMAGE_TM=https://github.com/iov-one/tendermint-build/releases/download/v0.31.9-iov1/tendermint-0.31.9-linux-amd64.tar.gz!' /etc/systemd/system/iovns.env | |
# ...pick-up env vars... | |
set -o allexport ; source /etc/systemd/system/iovns.env ; set +o allexport # pick-up env vars | |
# ...remove outdated binaries... |
sudo su | |
# update /etc/systemd/system/iovns.env with the patched tendermint artifact... | |
sed --in-place 's!IMAGE_TM=.*!IMAGE_TM=https://github.com/iov-one/tendermint-build/releases/download/v0.31.10-iov1/tendermint-0.31.10-linux-amd64.tar.gz!' /etc/systemd/system/iovns.env | |
# ...pick-up env vars... | |
set -o allexport ; source /etc/systemd/system/iovns.env ; set +o allexport # pick-up env vars | |
# ...remove outdated binary... | |
cd ${DIR_IOVNS} && rm -v tendermint* |