git.delta.rocks / unique-network / refs/commits / e01ca44f63c7

difftreelog

dev machine scripts

Igor Kozyrev2021-09-09parent: #b2b608e.patch.diff
in: master

10 files changed

addeddeploy/dev/host_vars/parachain-westend-alice.servicediffbeforeafterboth
--- /dev/null
+++ b/deploy/dev/host_vars/parachain-westend-alice.service
@@ -0,0 +1,31 @@
+[Unit]
+Description=Parachain Alice @ Westend Local
+
+[Service]
+ExecStart=/opt/usetech/nft \
+    --alice \
+    --collator \
+    --force-authoring \
+    --base-path /var/local/nft-parachain/westend/alice \
+    --parachain-id 2000 \
+    --port 40333 \
+    --rpc-port 9933 \
+    --ws-port 9944 \
+    --chain westend-local \
+    --discover-local \
+    -- --execution wasm \
+    --chain /opt/parity/westend-local.json \
+    --port 31200 \
+#    --rpc-port 9933 \
+#    --ws-port 9944 \
+    --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
addeddeploy/dev/host_vars/parachain-westend-bob.servicediffbeforeafterboth

no changes

addeddeploy/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
addeddeploy/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
addeddeploy/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
addeddeploy/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
addeddeploy/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
addeddeploy/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
addeddeploy/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
addeddeploy/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