File tree 3 files changed +35
-9
lines changed
3 files changed +35
-9
lines changed Original file line number Diff line number Diff line change 1
- FROM paritytech/ci-linux:dafdd6fb-20230127
1
+ FROM paritytech/ci-linux:1.71.0-bullseye
2
2
3
- WORKDIR /var/www
3
+ WORKDIR /var/www/hashed-substrate
4
4
5
- RUN git clone https://github.com/hashed-io/hashed-substrate-parachain.git hashed-substrate && cd hashed-substrate && git checkout main && cargo build --release
5
+ COPY . .
6
+ RUN cargo build --release
7
+ # RUN git clone https://github.com/hashed-io/hashed-substrate-parachain.git hashed-substrate && cd hashed-substrate && git checkout main && cargo build --release
6
8
7
9
# COPY ./target/release/hashed-parachain .
8
10
# COPY ./resources/* resources/.
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
# Run locally
4
- # ./target/release/hashed-parachain --collator --base-path /tmp/chain-170223/collator-data/ --force-authoring --port 40333 --ws -port 9946 --ws-external -- rpc-external --rpc-cors all --rpc-methods unsafe --chain hashed -- --execution wasm --base-path /tmp/chain-170223/relay-data/ --chain ./resources/polkadot.json --port 30333 --ws -port 9944 --ws-external --rpc-external --rpc-cors all --rpc-methods unsafe --wasm-execution Compiled --pruning 10000
5
- # ./target/release/hashed-parachain --collator --base-path /tmp/chain-170223/collator-data/ --force-authoring --port 40333 --ws -port 9946 --ws-external -- rpc-external --rpc-cors all --rpc-methods unsafe --chain /home/sebastian/Downloads/hashed-chain-spec-raw-170223.json -- --execution wasm --base-path /tmp/chain-170223/relay-data/ --chain ./resources/polkadot.json --port 30333 --ws -port 9944 --ws-external -- rpc-external --rpc-cors all --rpc-methods unsafe --wasm-execution Compiled --pruning 10000
4
+ # ./target/release/hashed-parachain --collator --base-path /tmp/chain-170223/collator-data/ --force-authoring --port 40333 --rpc -port 9946 --rpc-external --rpc-cors all --rpc-methods unsafe --chain hashed -- --execution wasm --base-path /tmp/chain-170223/relay-data/ --chain ./resources/polkadot.json --port 30333 --rpc -port 9944 --rpc-external --rpc-cors all --rpc-methods unsafe --wasm-execution Compiled --pruning 10000
5
+ # ./target/release/hashed-parachain --collator --base-path /tmp/chain-170223/collator-data/ --force-authoring --port 40333 --rpc -port 9946 --rpc-external --rpc-cors all --rpc-methods unsafe --chain /home/sebastian/Downloads/hashed-chain-spec-raw-170223.json -- --execution wasm --base-path /tmp/chain-170223/relay-data/ --chain ./resources/polkadot.json --port 30333 --rpc -port 9944 --rpc-external --rpc-cors all --rpc-methods unsafe --wasm-execution Compiled --pruning 1000
6
6
7
7
usage=" ./start_collator.sh [hashed|luhn|md5] <base-data-path>"
8
8
if [ $# -ne 2 ]; then
@@ -34,8 +34,7 @@ collator_args=(
34
34
--collator
35
35
--base-path $2 /collator-data/
36
36
--force-authoring
37
- --ws-port 9946
38
- --ws-external
37
+ --rpc-port 9946
39
38
--rpc-external
40
39
--rpc-cors all
41
40
--rpc-methods unsafe
@@ -72,8 +71,7 @@ relay_args=(
72
71
--base-path $2 /relay-data/
73
72
--chain $RESOURCES_PATH /${relay_chain} .json
74
73
--port 30333
75
- --ws-port 9944
76
- --ws-external
74
+ --rpc-port 9944
77
75
--rpc-external
78
76
--rpc-cors all
79
77
--rpc-methods unsafe
Original file line number Diff line number Diff line change
1
+ [relaychain ]
2
+ default_image = " parity/polkadot:latest"
3
+ default_command = " polkadot"
4
+ chain = " rococo-local"
5
+
6
+ [[relaychain .nodes ]]
7
+ name = " alice"
8
+ validator = true
9
+
10
+ [[relaychain .nodes ]]
11
+ name = " bob"
12
+ validator = true
13
+
14
+ [[parachains ]]
15
+ id = 2000
16
+ cumulus_based = true
17
+ chain = " md5"
18
+
19
+ # run charlie as parachain collator
20
+ [[parachains .collators ]]
21
+ name = " charlie"
22
+ validator = true
23
+ # image = "sebastianmontero/hashed-substrate-collator:latest"
24
+ command = " ../target/release/hashed-parachain"
25
+ args = [" --force-authoring" ]
26
+ # args = ["--chain", "/var/www/hashed-substrate/md5-collator-raw-spec.json", "--force-authoring"]
You can’t perform that action at this time.
0 commit comments