--- a/Dockerfile-tests +++ b/Dockerfile-tests @@ -1,10 +1,10 @@ # ===== Integration Tests ====== -FROM ubuntu:18.04 +FROM ubuntu:20.04 LABEL maintainer="UniqueNetwork.io" -RUN apt-get -y update; apt-get -y upgrade; apt-get -y install curl +RUN apt -y update; apt -y upgrade; apt -y install curl RUN mkdir nft_parachain @@ -18,11 +18,13 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash && \ export NVM_DIR="$HOME/.nvm" && \ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \ - nvm install v15.0.1 && \ - nvm use v15.0.1 && \ + nvm install v15.5.0 && \ + nvm use v15.5.0 && \ npm install --save @polkadot/api && \ npm install --save-dev mochawesome +RUN sleep 60 + CMD export NVM_DIR="$HOME/.nvm" && \ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \ cd tests && \ --- a/docker-compose-tests-parachain.yml +++ b/docker-compose-tests-parachain.yml @@ -6,6 +6,7 @@ container_name: validator1_test ports: - 9944:9944 + - 9844:9844 build: context: ./ dockerfile: Dockerfile-parachain --- a/tests/src/config_docker.ts +++ b/tests/src/config_docker.ts @@ -7,6 +7,7 @@ const config = { substrateUrl: process.env.substrateUrl || 'ws://172.17.0.1:9944', + frontierUrl: process.env.frontierUrl || 'http://172.17.0.1:9933', }; -export default config; \ No newline at end of file +export default config;