Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): simplify e2e init & network launch (#3333)
- Loading branch information
1 parent
33256db
commit 4c1797d
Showing
99 changed files
with
809 additions
and
930 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
version: '2.2' | ||
services: | ||
peerdiscovery: | ||
build: ./peer-discovery | ||
image: peerdiscovery | ||
nginx: | ||
image: nginx:latest | ||
volumes: | ||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf | ||
ports: | ||
- 4900:4900 | ||
|
||
postgres0: &postgresServiceDefinition | ||
image: "postgres:alpine" | ||
environment: | ||
POSTGRES_PASSWORD: password | ||
POSTGRES_DB: ark_testnet | ||
POSTGRES_USER: ark | ||
postgres1: *postgresServiceDefinition | ||
postgres2: *postgresServiceDefinition | ||
postgres3: *postgresServiceDefinition | ||
postgres4: *postgresServiceDefinition | ||
|
||
core0: &coreServiceDefinition | ||
build: ./nodes | ||
image: core | ||
volumes: | ||
- ./../../../../:/core | ||
depends_on: | ||
- postgres1 | ||
- peerdiscovery | ||
command: | ||
- /bin/sh | ||
- -c | ||
- /core/packages/core/bin/run core:run --network=testnet | ||
environment: &coreEnvironment | ||
CORE_DB_HOST: postgres0 | ||
CORE_DB_DATABASE: ark_testnet | ||
CORE_DB_USERNAME: ark | ||
CORE_PATH_CONFIG: /core/__tests__/e2e/lib/config/nodes/core0 | ||
CORE_PATH_DATA: /core/__tests__/e2e/lib/config/nodes/core0 | ||
|
||
core1: | ||
<<: *coreServiceDefinition | ||
depends_on: | ||
- postgres1 | ||
- peerdiscovery | ||
environment: | ||
<<: *coreEnvironment | ||
CORE_DB_HOST: postgres1 | ||
CORE_PATH_CONFIG: /core/__tests__/e2e/lib/config/nodes/core1 | ||
CORE_PATH_DATA: /core/__tests__/e2e/lib/config/nodes/core1 | ||
|
||
core2: | ||
<<: *coreServiceDefinition | ||
depends_on: | ||
- postgres2 | ||
- peerdiscovery | ||
environment: | ||
<<: *coreEnvironment | ||
CORE_DB_HOST: postgres2 | ||
CORE_PATH_CONFIG: /core/__tests__/e2e/lib/config/nodes/core2 | ||
CORE_PATH_DATA: /core/__tests__/e2e/lib/config/nodes/core2 | ||
|
||
core3: | ||
<<: *coreServiceDefinition | ||
depends_on: | ||
- postgres3 | ||
- peerdiscovery | ||
environment: | ||
<<: *coreEnvironment | ||
CORE_DB_HOST: postgres3 | ||
CORE_PATH_CONFIG: /core/__tests__/e2e/lib/config/nodes/core3 | ||
CORE_PATH_DATA: /core/__tests__/e2e/lib/config/nodes/core3 | ||
|
||
core4: | ||
<<: *coreServiceDefinition | ||
depends_on: | ||
- postgres4 | ||
- peerdiscovery | ||
environment: | ||
<<: *coreEnvironment | ||
CORE_DB_HOST: postgres4 | ||
CORE_PATH_CONFIG: /core/__tests__/e2e/lib/config/nodes/core4 | ||
CORE_PATH_DATA: /core/__tests__/e2e/lib/config/nodes/core4 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.