git.delta.rocks / unique-network / refs/commits / cef0c2a5d198

difftreelog

ci cleanup docker-compose for parallel test runs

Yaroslav Bolyukin2021-10-27parent: #01d9f60.patch.diff
in: master

1 file changed

modifieddocker-compose-tests-parachain.ymldiffbeforeafterboth
22
3services:3services:
4 blockchain_nodes:4 blockchain_nodes:
5 image: blockchain_nodes
6 container_name: blockchain_nodes
7 ports:
8 - 9944:9944
9 - 9844:9844
10 - 9933:9934
11 build:5 build:
12 context: ./6 context: ./
13 dockerfile: Dockerfile-parachain7 dockerfile: Dockerfile-parachain
17 - POLKA_VERSION=${POLKA_VERSION:?err}11 - POLKA_VERSION=${POLKA_VERSION:?err}
18 - NFT_BRANCH=${NFT_BRANCH:?err}12 - NFT_BRANCH=${NFT_BRANCH:?err}
19 volumes:13 volumes:
20# - ./chain-data:/chain-data
21 - ./launch-config.json:/polkadot-launch/launch-config.json14 - ./launch-config.json:/polkadot-launch/launch-config.json
22 - ./runtime_types.json:/polkadot-launch/runtime_types.json15 - ./runtime_types.json:/polkadot-launch/runtime_types.json
23 env_file:16 env_file:
24 - ./.env17 - ./.env
25 networks:
26 - node_test_network
27 #command: bash -c "yarn --cwd polkadot-launch start"
28 #command: bash -c 'while true; do sleep 60; df -h; done'
2918
30 integration_tests:19 integration_tests:
31 container_name: integration_tests
32 image: integration_tests
33 build:20 build:
34 context: tests/21 context: tests/
35 dockerfile: Dockerfile-tests22 dockerfile: Dockerfile-tests
39 - ./tests/src/config_docker.ts:/nft_parachain/src/config.ts26 - ./tests/src/config_docker.ts:/nft_parachain/src/config.ts
40 - /home/ubuntu/mochawesome-report:/nft_parachain/mochawesome-report27 - /home/ubuntu/mochawesome-report:/nft_parachain/mochawesome-report
41 - ./runtime_types.json:/runtime_types.json28 - ./runtime_types.json:/runtime_types.json
42# command: bash -c 'while true; do sleep 20; df -h; done'
43 networks:
44 - node_test_network
45 depends_on:29 depends_on:
46 - blockchain_nodes30 - blockchain_nodes
47
48# unit_tests:
49# container_name: unit_test
50# image: nft_unit_test
51# build:
52# context: ./
53# dockerfile: Dockerfile-unit
54# container_name: unit_test
55# networks:
56# - node_test_network
57 # command: bash -c 'while true; do sleep 20; df -h; done'
58# command: bash -c 'cargo test'
59
60networks:
61 node_test_network:
62 name: node_test_network
63 driver: bridge
6431