difftreelog
dev machine scripts
in: master
10 files changed
deploy/dev/host_vars/parachain-westend-alice.servicediffbeforeafterbothno changes
deploy/dev/host_vars/parachain-westend-bob.servicediffbeforeafterboth--- /dev/null
+++ b/deploy/dev/host_vars/parachain-westend-bob.service
@@ -0,0 +1,31 @@
+[Unit]
+Description=Parachain Bob @ Westend Local
+
+[Service]
+ExecStart=/opt/usetech/nft \
+ --bob \
+ --collator \
+ --force-authoring \
+ --base-path /var/local/nft-parachain/westend/bob \
+ --parachain-id 2000 \
+ --port 40334 \
+ --ws-port 9945 \
+ --rpc-port 9934 \
+ --chain westend-local \
+ --discover-local \
+ -- --execution wasm \
+ --chain /opt/parity/westend-local.json \
+ --port 31201 \
+# --ws-port 9945 \
+# --rpc-port 9934 \
+ --no-mdns \
+ --bootnodes /ip4/127.0.0.1/tcp/30336/p2p/12D3KooWR76geqit8nMJtQYuLXNy4oHDVJZdsPLNjTmWhL4TeijW \
+ /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWRqnBJPpKntaKmqoDJLxgGR11tconzYLewaeGz2saiXhw \
+ /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWRydSwsbQbfBN71DFXxmYt5GHmrVebRmUv9mPU91U3FPE \
+ /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWHp7JuDmdrv79mgdPxPa59PYLiXW2AkwXqAXQa71i1gje
+
+Restart=always
+RestartSec=120
+
+[Install]
+WantedBy=multi-user.target
deploy/dev/host_vars/relay-westend-alice.servicediffbeforeafterboth--- /dev/null
+++ b/deploy/dev/host_vars/relay-westend-alice.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=Westend Alice
+
+[Service]
+ExecStart=/opt/parity/polkadot \
+ --alice \
+ --validator \
+# --ws-external \
+# --rpc-external \
+# --rpc-cors all \
+ --no-telemetry \
+ --base-path /var/local/westend/alice \
+ --chain /opt/parity/westend-local.json \
+ --execution Wasm \
+# --listen-addr /ip4/127.0.0.1/tcp/9944/ws \
+# --public-addr /ip4/92.53.69.98 \
+# --discover-local \
+ --no-mdns \
+ --bootnodes /ip4/127.0.0.1/tcp/30336/p2p/12D3KooWR76geqit8nMJtQYuLXNy4oHDVJZdsPLNjTmWhL4TeijW \
+ /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWRqnBJPpKntaKmqoDJLxgGR11tconzYLewaeGz2saiXhw \
+ /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWRydSwsbQbfBN71DFXxmYt5GHmrVebRmUv9mPU91U3FPE \
+ --port 30333 \
+ --rpc-port 9843 \
+ --ws-port 9844
+
+Restart=always
+RestartSec=120
+
+[Install]
+WantedBy=multi-user.target
deploy/dev/host_vars/relay-westend-bob.servicediffbeforeafterboth--- /dev/null
+++ b/deploy/dev/host_vars/relay-westend-bob.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=Westend Bob
+
+[Service]
+ExecStart=/opt/parity/polkadot \
+ --bob \
+ --validator \
+# --ws-external \
+# --rpc-external \
+# --rpc-cors all \
+ --no-telemetry \
+ --base-path /var/local/westend/bob \
+ --chain /opt/parity/westend-local.json \
+ --execution Wasm \
+# --listen-addr /ip4/127.0.0.1/tcp/9944/ws \
+# --public-addr /ip4/92.53.69.98 \
+# --discover-local \
+ --no-mdns \
+ --bootnodes /ip4/127.0.0.1/tcp/30336/p2p/12D3KooWR76geqit8nMJtQYuLXNy4oHDVJZdsPLNjTmWhL4TeijW \
+ /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWRqnBJPpKntaKmqoDJLxgGR11tconzYLewaeGz2saiXhw \
+ /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWHp7JuDmdrv79mgdPxPa59PYLiXW2AkwXqAXQa71i1gje \
+ --port 30334 \
+ --rpc-port 9854 \
+ --ws-port 9855
+
+Restart=always
+RestartSec=120
+
+[Install]
+WantedBy=multi-user.target
deploy/dev/host_vars/relay-westend-charlie.servicediffbeforeafterboth--- /dev/null
+++ b/deploy/dev/host_vars/relay-westend-charlie.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=Westend Charlie
+
+[Service]
+ExecStart=/opt/parity/polkadot \
+ --charlie \
+ --validator \
+# --ws-external \
+# --rpc-external \
+# --rpc-cors all \
+ --no-telemetry \
+ --base-path /var/local/westend/charlie \
+ --chain /opt/parity/westend-local.json \
+ --execution Wasm \
+# --listen-addr /ip4/127.0.0.1/tcp/9944/ws \
+# --public-addr /ip4/92.53.69.98 \
+# --discover-local \
+ --no-mdns \
+ --bootnodes /ip4/127.0.0.1/tcp/30336/p2p/12D3KooWR76geqit8nMJtQYuLXNy4oHDVJZdsPLNjTmWhL4TeijW \
+ /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWRydSwsbQbfBN71DFXxmYt5GHmrVebRmUv9mPU91U3FPE \
+ /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWHp7JuDmdrv79mgdPxPa59PYLiXW2AkwXqAXQa71i1gje \
+ --port 30335 \
+ --rpc-port 9865 \
+ --ws-port 9866
+
+Restart=always
+RestartSec=120
+
+[Install]
+WantedBy=multi-user.target
deploy/dev/host_vars/relay-westend-dave.servicediffbeforeafterboth--- /dev/null
+++ b/deploy/dev/host_vars/relay-westend-dave.service
@@ -0,0 +1,30 @@
+[Unit]
+Description=Westend Dave
+
+[Service]
+ExecStart=/opt/parity/polkadot \
+ --dave \
+ --validator \
+# --ws-external \
+# --rpc-external \
+# --rpc-cors all \
+ --no-telemetry \
+ --base-path /var/local/westend/dave \
+ --chain /opt/parity/westend-local.json \
+ --execution Wasm \
+# --listen-addr /ip4/127.0.0.1/tcp/9944/ws \
+# --public-addr /ip4/92.53.69.98 \
+# --discover-local \
+ --no-mdns \
+ --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWHp7JuDmdrv79mgdPxPa59PYLiXW2AkwXqAXQa71i1gje \
+ /ip4/127.0.0.1/tcp/30335/p2p/12D3KooWRqnBJPpKntaKmqoDJLxgGR11tconzYLewaeGz2saiXhw \
+ /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWRydSwsbQbfBN71DFXxmYt5GHmrVebRmUv9mPU91U3FPE \
+ --port 30336 \
+ --rpc-port 9876 \
+ --ws-port 9877
+
+Restart=always
+RestartSec=120
+
+[Install]
+WantedBy=multi-user.target
deploy/dev/host_vars/start-parachain-westend.shdiffbeforeafterboth--- /dev/null
+++ b/deploy/dev/host_vars/start-parachain-westend.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+/opt/usetech/nft export-genesis-state --parachain-id 2000 > /opt/usetech/nft-parachain-2000-genesis
+
+/opt/usetech/nft export-genesis-wasm > /opt/usetech/nft-parachain-2000-wasm
+
+
+service parachain-westend-alice start
+sleep 15
+
+service parachain-westend-bob start
deploy/dev/host_vars/start-relay-westend.shdiffbeforeafterboth--- /dev/null
+++ b/deploy/dev/host_vars/start-relay-westend.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+/opt/parity/polkadot build-spec --chain westend-local --disable-default-bootnode --raw > /opt/parity/westend-local.json
+
+service relay-westend-alice start
+sleep 15
+
+service relay-westend-bob start
+sleep 15
+
+service relay-westend-charlie start
+sleep 15
+
+service relay-westend-dave start
deploy/dev/host_vars/stop-parachain-westend.shdiffbeforeafterboth--- /dev/null
+++ b/deploy/dev/host_vars/stop-parachain-westend.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+service parachain-westend-bob stop
+sleep 5
+
+service parachain-westend-alice stop
+sleep 15
+
+rm -rfv /var/local/nft-parachain/westend/alice
+rm -rfv /var/local/nft-parachain/westend/bob
deploy/dev/host_vars/stop-relay-westend.shdiffbeforeafterboth--- /dev/null
+++ b/deploy/dev/host_vars/stop-relay-westend.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+service relay-westend-dave stop
+sleep 5
+
+service relay-westend-charlie stop
+sleep 5
+
+service relay-westend-bob stop
+sleep 5
+
+service relay-westend-alice stop
+sleep 15
+
+rm -rfv /var/local/westend/dave/chains/westend_local_testnet/db
+rm -rfv /var/local/westend/dave/chains/westend_local_testnet/keystore
+
+rm -rfv /var/local/westend/charlie/chains/westend_local_testnet/db
+rm -rfv /var/local/westend/charlie/chains/westend_local_testnet/keystore
+
+rm -rfv /var/local/westend/bob/chains/westend_local_testnet/db
+rm -rfv /var/local/westend/bob/chains/westend_local_testnet/keystore
+
+rm -rfv /var/local/westend/alice/chains/westend_local_testnet/db
+rm -rfv /var/local/westend/alice/chains/westend_local_testnet/keystore