difftreelog
added rpc external flags
in: master
3 files changed
Dockerfile-testsdiffbeforeafterboth1# ===== Integration Tests ======234FROM ubuntu:20.045LABEL maintainer="UniqueNetwork.io"67RUN apt -y update; apt -y upgrade; apt -y install curl8910RUN mkdir nft_parachain11WORKDIR /nft_parachain1213COPY . .1415RUN apt-get -y update && \16 apt-get -y upgrade && \17 apt-get -y install curl && \18 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash && \19 export NVM_DIR="$HOME/.nvm" && \20 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \21 nvm install v15.5.0 && \22 nvm use v15.5.0 && \23 npm install --save @polkadot/api && \ 24 npm install --save-dev mochawesome2526RUN sleep 602728CMD export NVM_DIR="$HOME/.nvm" && \29 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \30 cd tests && \31 npm install --global yarn && \ 32 yarn add mochawesome && \33 yarn install && \34 yarn test --reporter mochawesome35 # yarn test1# ===== Integration Tests ======234FROM ubuntu:20.045LABEL maintainer="UniqueNetwork.io"67RUN apt -y update; apt -y upgrade; apt -y install curl8910RUN mkdir nft_parachain11WORKDIR /nft_parachain1213COPY . .1415RUN apt-get -y update && \16 apt-get -y upgrade && \17 apt-get -y install curl && \18 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash && \19 export NVM_DIR="$HOME/.nvm" && \20 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \21 nvm install v15.5.0 && \22 nvm use v15.5.0 && \23 npm install --save @polkadot/api && \ 24 npm install --save-dev mochawesome2526CMD sleep 602728CMD export NVM_DIR="$HOME/.nvm" && \29 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \30 cd tests && \31 npm install --global yarn && \ 32 yarn add mochawesome && \33 yarn install && \34 yarn test --reporter mochawesome35 # yarn testdocker-compose-tests-parachain.ymldiffbeforeafterboth--- a/docker-compose-tests-parachain.yml
+++ b/docker-compose-tests-parachain.yml
@@ -7,6 +7,7 @@
ports:
- 9944:9944
- 9844:9844
+ - 9933:9933
build:
context: ./
dockerfile: Dockerfile-parachain
@@ -28,7 +29,7 @@
volumes:
- ./tests/src/config_docker.ts:/nft_parachain/tests/src/config.ts
- /home/polkadot/mochawesome-report:/nft_parachain/tests/mochawesome-report
- # command: bash -c 'while true; do sleep 20; df -h; done'
+ command: bash -c 'while true; do sleep 20; df -h; done'
networks:
- node_test_network
depends_on:
launch-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
+}