git.delta.rocks / unique-network / refs/commits / 49b176513c41

difftreelog

added rpc external flags

akNFT2021-09-06parent: #302ef31.patch.diff
in: master

3 files changed

modifiedDockerfile-testsdiffbeforeafterboth
--- a/Dockerfile-tests
+++ b/Dockerfile-tests
@@ -23,7 +23,7 @@
       npm install --save @polkadot/api && \ 
       npm install --save-dev mochawesome
 
-RUN sleep 60
+CMD sleep 60
 
 CMD export NVM_DIR="$HOME/.nvm" && \
     [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
modifieddocker-compose-tests-parachain.ymldiffbeforeafterboth
before · docker-compose-tests-parachain.yml
1version: "3.5"23services:4  node_validator1:5    image: nft_node_test6    container_name: validator1_test7    ports:8      - 9944:99449      - 9844:984410    build:11      context: ./12      dockerfile: Dockerfile-parachain13    volumes:14#      - ./chain-data:/chain-data15      - ./launch-config.json:/polkadot-launch/launch-config.json16      - ./runtime_types.json:/polkadot-launch/runtime_types.json17    networks:18      - node_test_network19    #command: bash -c "yarn --cwd polkadot-launch start"20    #command: bash -c 'while true; do sleep 60; df -h; done'2122  integration_tests:23    container_name: integration_test24    image: int_test25    build:26      context: ./27      dockerfile: Dockerfile-tests28    volumes:29      - ./tests/src/config_docker.ts:/nft_parachain/tests/src/config.ts30      - /home/polkadot/mochawesome-report:/nft_parachain/tests/mochawesome-report31  #  command: bash -c 'while true; do sleep 20; df -h; done'32    networks:33      - node_test_network34    depends_on:35      - node_validator13637#  unit_tests:38#    container_name: unit_test39#    image: nft_unit_test40#    build:41#      context: ./42#      dockerfile: Dockerfile-unit43#    container_name: unit_test44#    networks:45#      - node_test_network46   # command: bash -c 'while true; do sleep 20; df -h; done'47#    command: bash -c 'cargo test'4849networks:50  node_test_network:51    name: node_test_network52    driver: bridge
after · docker-compose-tests-parachain.yml
1version: "3.5"23services:4  node_validator1:5    image: nft_node_test6    container_name: validator1_test7    ports:8      - 9944:99449      - 9844:984410      - 9933:993311    build:12      context: ./13      dockerfile: Dockerfile-parachain14    volumes:15#      - ./chain-data:/chain-data16      - ./launch-config.json:/polkadot-launch/launch-config.json17      - ./runtime_types.json:/polkadot-launch/runtime_types.json18    networks:19      - node_test_network20    #command: bash -c "yarn --cwd polkadot-launch start"21    #command: bash -c 'while true; do sleep 60; df -h; done'2223  integration_tests:24    container_name: integration_test25    image: int_test26    build:27      context: ./28      dockerfile: Dockerfile-tests29    volumes:30      - ./tests/src/config_docker.ts:/nft_parachain/tests/src/config.ts31      - /home/polkadot/mochawesome-report:/nft_parachain/tests/mochawesome-report32    command: bash -c 'while true; do sleep 20; df -h; done'33    networks:34      - node_test_network35    depends_on:36      - node_validator13738#  unit_tests:39#    container_name: unit_test40#    image: nft_unit_test41#    build:42#      context: ./43#      dockerfile: Dockerfile-unit44#    container_name: unit_test45#    networks:46#      - node_test_network47   # command: bash -c 'while true; do sleep 20; df -h; done'48#    command: bash -c 'cargo test'4950networks:51  node_test_network:52    name: node_test_network53    driver: bridge
modifiedlaunch-config.jsondiffbeforeafterboth
--- a/launch-config.json
+++ b/launch-config.json
@@ -66,7 +66,9 @@
                     "name": "alice",
                     "flags": [
                         "--rpc-cors=all",
-                        "--rpc-port=9933"
+                        "--rpc-port=9933",
+			"--ws-external",
+			"--rpc-external"
                     ]
                 },
                 {
@@ -76,7 +78,9 @@
                     "name": "bob",
                     "flags": [
                         "--rpc-cors=all",
-                        "--rpc-port=9934"
+                        "--rpc-port=9934",
+			"--ws-external",
+                        "--rpc-external"
                     ]
                 }
             ]
@@ -86,4 +90,4 @@
     "hrmpChannels": [],
     "types": "./runtime_types.json",
     "finalization": false
-}
\ No newline at end of file
+}