Remove unnecessary prefix
This commit is contained in:
parent
65c4c36eec
commit
f8a3a273a4
@ -500,7 +500,7 @@ Clone the stack repo:
|
||||
- Run the bridge:
|
||||
- Create a spec-file for the deployment, map container ports to host ports and set env variables:
|
||||
```bash
|
||||
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/bridge deploy init --map-ports-to-host any-same --output bridge-nitro-spec.yml --config 'CERC_NITRO_L1_CHAIN_URL=ws://host.docker.internal:8546,CERC_NITRO_L2_CHAIN_URL=ws://host.docker.internal:9546,CERC_NITRO_CHAIN_PK=888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218,CERC_NITRO_SC_PK=0279651921cd800ac560c21ceea27aab0107b67daf436cdd25ce84cad30159b4,CERC_GETH_URL=http://host.docker.internal:8545,CERC_OPTIMISM_URL=http://host.docker.internal:9545,CERC_GETH_DEPLOYER_PK=$ACCOUNT_PK,CERC_OPTIMISM_DEPLOYER_PK=$ACCOUNT_PK,CERC_TOKEN_NAME=LaconicNetworkToken,CERC_TOKEN_SYMBOL=LNT,CERC_INITIAL_TOKEN_SUPPLY=129600'
|
||||
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/bridge deploy init --map-ports-to-host any-same --output bridge-nitro-spec.yml --config "NITRO_L1_CHAIN_URL=ws://host.docker.internal:8546,NITRO_L2_CHAIN_URL=ws://host.docker.internal:9546,NITRO_CHAIN_PK=888814df89c4358d7ddb3fa4b0213e7331239a80e1f013eaa7b2deca2a41a218,NITRO_SC_PK=0279651921cd800ac560c21ceea27aab0107b67daf436cdd25ce84cad30159b4,GETH_URL=http://host.docker.internal:8545,OPTIMISM_URL=http://host.docker.internal:9545,GETH_DEPLOYER_PK=$ACCOUNT_PK,OPTIMISM_DEPLOYER_PK=$ACCOUNT_PK,TOKEN_NAME=LaconicNetworkToken,TOKEN_SYMBOL=LNT,INITIAL_TOKEN_SUPPLY=129600"
|
||||
```
|
||||
|
||||
- Create a deployment from the spec file:
|
||||
@ -642,39 +642,25 @@ Clone the stack repo:
|
||||
```
|
||||
|
||||
- Prepare deployments for the nodes
|
||||
- Set the env variables for L1 Alice's nitro-node:
|
||||
|
||||
```bash
|
||||
cat <<EOF >> lialice-nitro-deployment/config.env
|
||||
CERC_NITRO_CHAIN_URL=ws://host.docker.internal:8546
|
||||
CERC_NITRO_SC_PK=$A_PRIVATE_KEY
|
||||
CERC_NITRO_CHAIN_PK=570b909da9669b2f35a0b1ac70b8358516d55ae1b5b3710e95e9a94395090597
|
||||
CERC_NA_ADDRESS=$CERC_NA_ADDRESS
|
||||
CERC_VPA_ADDRESS=$CERC_VPA_ADDRESS
|
||||
CERC_CA_ADDRESS=$CERC_CA_ADDRESS
|
||||
CERC_BRIDGE_ADDRESS=$CERC_BRIDGE_ADDRESS
|
||||
CERC_NITRO_BOOTPEERS=/dns4/host.docker.internal/tcp/3005/p2p/16Uiu2HAmJDxLM8rSybX78FH51iZq9PdrwCoCyyHRBCndNzcAYMes
|
||||
EOF
|
||||
```
|
||||
|
||||
- Create a deployment from the spec file
|
||||
- Create a deployment `l1alice-nitro-deployment` from the spec file
|
||||
|
||||
```bash
|
||||
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node deploy create --spec-file l1alice-nitro-spec.yml --deployment-dir l1alice-nitro-deployment
|
||||
```
|
||||
|
||||
- Set the env variables for L1 Charlie's nitro-node:
|
||||
- Set the env variables for L1 Alice's nitro-node:
|
||||
|
||||
```bash
|
||||
cat <<EOF >> l1charlie-nitro-deployment/config.env
|
||||
CERC_NITRO_CHAIN_URL=ws://host.docker.internal:8546
|
||||
CERC_NITRO_SC_PK=$C_PRIVATE_KEY
|
||||
CERC_NITRO_CHAIN_PK=111b7500bdce494d6f4bcfe8c2a0dde2ef92f751d9070fac6475dbd6d8021b3f
|
||||
CERC_NA_ADDRESS=$CERC_NA_ADDRESS
|
||||
CERC_VPA_ADDRESS=$CERC_VPA_ADDRESS
|
||||
CERC_CA_ADDRESS=$CERC_CA_ADDRESS
|
||||
CERC_BRIDGE_ADDRESS=$CERC_BRIDGE_ADDRESS
|
||||
CERC_NITRO_BOOTPEERS=/dns4/host.docker.internal/tcp/3005/p2p/16Uiu2HAmJDxLM8rSybX78FH51iZq9PdrwCoCyyHRBCndNzcAYMes
|
||||
cat <<EOF >> l1alice-nitro-deployment/config.env
|
||||
NITRO_CHAIN_URL=ws://host.docker.internal:8546
|
||||
NITRO_SC_PK=$A_PRIVATE_KEY
|
||||
NITRO_CHAIN_PK=570b909da9669b2f35a0b1ac70b8358516d55ae1b5b3710e95e9a94395090597
|
||||
NA_ADDRESS=$NA_ADDRESS
|
||||
VPA_ADDRESS=$VPA_ADDRESS
|
||||
CA_ADDRESS=$CA_ADDRESS
|
||||
BRIDGE_ADDRESS=$BRIDGE_ADDRESS
|
||||
NITRO_BOOTPEERS=/dns4/host.docker.internal/tcp/3005/p2p/16Uiu2HAmJDxLM8rSybX78FH51iZq9PdrwCoCyyHRBCndNzcAYMes
|
||||
EOF
|
||||
```
|
||||
|
||||
@ -684,54 +670,68 @@ Clone the stack repo:
|
||||
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node deploy create --spec-file l1charlie-nitro-spec.yml --deployment-dir l1charlie-nitro-deployment
|
||||
```
|
||||
|
||||
- Set the env variables for L1 Charlie's nitro-node:
|
||||
|
||||
```bash
|
||||
cat <<EOF >> l1charlie-nitro-deployment/config.env
|
||||
NITRO_CHAIN_URL=ws://host.docker.internal:8546
|
||||
NITRO_SC_PK=$C_PRIVATE_KEY
|
||||
NITRO_CHAIN_PK=570b909da9669b2f35a0b1ac70b8358516d55ae1b5b3710e95e9a94395090597
|
||||
NA_ADDRESS=$NA_ADDRESS
|
||||
VPA_ADDRESS=$VPA_ADDRESS
|
||||
CA_ADDRESS=$CA_ADDRESS
|
||||
BRIDGE_ADDRESS=$BRIDGE_ADDRESS
|
||||
NITRO_BOOTPEERS=/dns4/host.docker.internal/tcp/3005/p2p/16Uiu2HAmJDxLM8rSybX78FH51iZq9PdrwCoCyyHRBCndNzcAYMes
|
||||
EOF
|
||||
```
|
||||
|
||||
- Create a deployment `l2alice-nitro-deployment` from the spec file:
|
||||
|
||||
```bash
|
||||
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node deploy create --spec-file l2alice-nitro-spec.yml --deployment-dir l2alice-nitro-deployment
|
||||
```
|
||||
|
||||
- Set the env variables for L2 Alice's nitro-node:
|
||||
|
||||
```bash
|
||||
cat <<EOF >> l2alice-nitro-deployment/config.env
|
||||
CERC_NITRO_CHAIN_URL=ws://host.docker.internal:9546
|
||||
CERC_NITRO_SC_PK=$A_PRIVATE_KEY
|
||||
CERC_NITRO_CHAIN_PK=570b909da9669b2f35a0b1ac70b8358516d55ae1b5b3710e95e9a94395090597
|
||||
CERC_NITRO_MSG_PORT=3008
|
||||
CERC_NITRO_RPC_PORT=4008
|
||||
CERC_NA_ADDRESS=$CERC_NA_ADDRESS
|
||||
CERC_VPA_ADDRESS=$CERC_VPA_ADDRESS
|
||||
CERC_CA_ADDRESS=$CERC_CA_ADDRESS
|
||||
CERC_BRIDGE_ADDRESS=$CERC_BRIDGE_ADDRESS
|
||||
CERC_NITRO_BOOTPEERS=/dns4/host.docker.internal/tcp/3005/p2p/16Uiu2HAmJDxLM8rSybX78FH51iZq9PdrwCoCyyHRBCndNzcAYMes
|
||||
CERC_NITRO_L2=true
|
||||
NITRO_CHAIN_URL=ws://host.docker.internal:9546
|
||||
NITRO_SC_PK=$A_PRIVATE_KEY
|
||||
NITRO_CHAIN_PK=111b7500bdce494d6f4bcfe8c2a0dde2ef92f751d9070fac6475dbd6d8021b3f
|
||||
NITRO_MSG_PORT=3008
|
||||
NITRO_RPC_PORT=4008
|
||||
NA_ADDRESS=$NA_ADDRESS
|
||||
VPA_ADDRESS=$VPA_ADDRESS
|
||||
CA_ADDRESS=$CA_ADDRESS
|
||||
BRIDGE_ADDRESS=$BRIDGE_ADDRESS
|
||||
NITRO_BOOTPEERS=/dns4/host.docker.internal/tcp/3005/p2p/16Uiu2HAmJDxLM8rSybX78FH51iZq9PdrwCoCyyHRBCndNzcAYMes
|
||||
NITRO_L2=true
|
||||
EOF
|
||||
```
|
||||
|
||||
- Create a deployment from the spec file:
|
||||
- Create deployment `l2charlie-nitro-deployment` from the spec files:
|
||||
|
||||
```bash
|
||||
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node deploy create --spec-file l2alice-nitro-spec.yml --deployment-dir l2alice-nitro-deployment
|
||||
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node deploy create --spec-file l2charlie-nitro-spec.yml --deployment-dir l2charlie-nitro-deployment
|
||||
```
|
||||
|
||||
- Set the env variables for L2 Charlie's nitro-node:
|
||||
|
||||
```bash
|
||||
cat <<EOF >> l2charlie-nitro-deployment/config.env
|
||||
CERC_NITRO_CHAIN_URL=ws://host.docker.internal:9546
|
||||
CERC_NITRO_SC_PK=$C_PRIVATE_KEY
|
||||
CERC_NITRO_CHAIN_PK=111b7500bdce494d6f4bcfe8c2a0dde2ef92f751d9070fac6475dbd6d8021b3f
|
||||
CERC_NITRO_MSG_PORT=3010
|
||||
CERC_NITRO_RPC_PORT=4010
|
||||
CERC_NA_ADDRESS=$CERC_NA_ADDRESS
|
||||
CERC_VPA_ADDRESS=$CERC_VPA_ADDRESS
|
||||
CERC_CA_ADDRESS=$CERC_CA_ADDRESS
|
||||
CERC_BRIDGE_ADDRESS=$CERC_BRIDGE_ADDRESS
|
||||
CERC_NITRO_BOOTPEERS=/dns4/host.docker.internal/tcp/3005/p2p/16Uiu2HAmJDxLM8rSybX78FH51iZq9PdrwCoCyyHRBCndNzcAYMes
|
||||
CERC_NITRO_L2=true
|
||||
NITRO_CHAIN_URL=ws://host.docker.internal:9546
|
||||
NITRO_SC_PK=$C_PRIVATE_KEY
|
||||
NITRO_CHAIN_PK=111b7500bdce494d6f4bcfe8c2a0dde2ef92f751d9070fac6475dbd6d8021b3f
|
||||
NITRO_MSG_PORT=3010
|
||||
NITRO_RPC_PORT=4010
|
||||
NA_ADDRESS=$NA_ADDRESS
|
||||
VPA_ADDRESS=$VPA_ADDRESS
|
||||
CA_ADDRESS=$CA_ADDRESS
|
||||
BRIDGE_ADDRESS=$BRIDGE_ADDRESS
|
||||
NITRO_BOOTPEERS=/dns4/host.docker.internal/tcp/3005/p2p/16Uiu2HAmJDxLM8rSybX78FH51iZq9PdrwCoCyyHRBCndNzcAYMes
|
||||
NITRO_L2=true
|
||||
EOF
|
||||
```
|
||||
|
||||
- Create deployment from the spec files:
|
||||
|
||||
```bash
|
||||
laconic-so --stack ~/cerc/nitro-stack/stack-orchestrator/stacks/nitro-node deploy create --spec-file l2charlie-nitro-spec.yml --deployment-dir l2charlie-nitro-deployment
|
||||
```
|
||||
|
||||
- Start nitro nodes for Alice and Charlie on L1 and L2:
|
||||
|
||||
- Start the deployment for Alice's L1 node
|
||||
|
||||
Loading…
Reference in New Issue
Block a user