difftreelog
Add gateway node to testnet - Bohr
in: master
3 files changed
Dockerfile-testnetdiffbeforeafterboth15#RUN git clone https://github.com/usetech-llc/nft_parachain /nft_parachain15#RUN git clone https://github.com/usetech-llc/nft_parachain /nft_parachain16RUN mkdir nft_parachain16RUN mkdir nft_parachain17WORKDIR /nft_parachain17WORKDIR /nft_parachain18COPY . .191820RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \19RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \21 export PATH="$PATH:$HOME/.cargo/bin" && \20 export PATH="$PATH:$HOME/.cargo/bin" && \25 rustup target add wasm32-unknown-unknown --toolchain $WASM_TOOLCHAIN && \24 rustup target add wasm32-unknown-unknown --toolchain $WASM_TOOLCHAIN && \26 rustup target list --installed && \25 rustup target list --installed && \27 rustup show26 rustup show2728COPY . .282929RUN export PATH="$PATH:$HOME/.cargo/bin" && \30RUN export PATH="$PATH:$HOME/.cargo/bin" && \30 cargo build "--$PROFILE" 31 cargo build "--$PROFILE" docker-compose-testnet.ymldiffbeforeafterboth4 node_einstein:4 node_einstein:5 image: nft-parachain5 image: nft-parachain6 ports:6 ports:7 - 9944:99448 - 9935:99357 - 9935:99359 build:8 build:10 context: ./9 context: ./17 environment:16 environment:18 - NODE=einstein17 - NODE=einstein19 - P2PPORT=3033518 - P2PPORT=3033520 - WSPORT=994419 - WSPORT=994521 - RPCPORT=993520 - RPCPORT=993522 - BOOTNODE=True21 - BOOTNODE=True22 - VALIDATOR=True232324 node_newton:24 node_newton:25 image: nft-parachain25 image: nft-parachain26 ports:26 ports:27 - 9946:994628 - 9936:993627 - 9936:993629 build:28 build:30 context: ./29 context: ./42 - BOOTNODE=False41 - BOOTNODE=False43 - BOOTPORT=3033542 - BOOTPORT=3033544 - BOOTID=12D3KooWRYNrSRQvJ73esUhpyETQNJWGfC2LQ9dW3HJtzHJM28Hc43 - BOOTID=12D3KooWRYNrSRQvJ73esUhpyETQNJWGfC2LQ9dW3HJtzHJM28Hc4544 - VALIDATOR=True4546 node_bohr:47 image: nft-parachain48 ports:49 - 9944:994450 build:51 context: ./52 dockerfile: Dockerfile-testnet53 volumes:54 - ./chain-data-bohr:/chain-data55 networks: 56 - substrate_network57 restart: always58 environment:59 - NODE=bohr60 - P2PPORT=3033461 - WSPORT=994462 - RPCPORT=993463 - BOOTNODE=False64 - BOOTPORT=3033565 - BOOTID=12D3KooWRYNrSRQvJ73esUhpyETQNJWGfC2LQ9dW3HJtzHJM28Hc66 - VALIDATOR=False67 46networks: 68networks: 47 substrate_network:69 substrate_network:run-testnet.shdiffbeforeafterboth14echo This is a Bootnode;14echo This is a Bootnode;15BOOTNODES="";15BOOTNODES="";16else16else17echo Bootnode Port : $BOOTPORT17echo Bootnode Port : $BOOTPORT;18echo Bootnode PeerID : $BOOTID18echo Bootnode PeerID : $BOOTID;19BOOTNODES="--bootnodes /dns4/node_einstein/tcp/$BOOTPORT/p2p/$BOOTID";19BOOTNODES="--bootnodes /dns4/node_einstein/tcp/$BOOTPORT/p2p/$BOOTID";20fi20fi212122if [ "VALIDATOR" = True ];23then24echo This is a Validator node;25/usr/local/bin/nft \26 --base-path /chain-data \27 --chain ./nftTestnetSpecRaw.json \28 --port $P2PPORT \29 --ws-port $WSPORT \30 --rpc-port $RPCPORT \31 --validator \32 --rpc-methods=Unsafe \33 --name $NODE \34 --ws-external \35 --rpc-external \36 -lruntime \37 $BOOTNODES;38else39echo This is a Gateway node;22/usr/local/bin/nft \40/usr/local/bin/nft \23 --base-path /chain-data \41 --base-path /chain-data \24 --chain ./nftTestnetSpecRaw.json \42 --chain ./nftTestnetSpecRaw.json \32 --rpc-external \50 --rpc-external \33 --rpc-cors all \51 --rpc-cors all \34 -lruntime \52 -lruntime \35 $BOOTNODES53 $BOOTNODES;54fi365537