-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup integration tests environment (#58)
* setup integration tests environment
- Loading branch information
Showing
13 changed files
with
434 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.env | ||
./listener/tmp/* | ||
./listener/bin/* | ||
jwt | ||
private.pem | ||
public.pem |
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,11 @@ | ||
MONGO_INITDB_ROOT_USERNAME=dappnode | ||
MONGO_INITDB_ROOT_PASSWORD=dappnode | ||
MONGO_DB_API_PORT=27017 | ||
API_PORT=8080 | ||
LOG_LEVEL=DEBUG | ||
MAX_ENTRIES_PER_BSON=30 | ||
BEACON_NODE_URL_MAINNET=http://172.33.0.27:3500 | ||
BEACON_NODE_URL_HOLESKY=http://172.33.0.27:3500 | ||
BEACON_NODE_URL_GNOSIS=http://172.33.0.27:3500 | ||
BEACON_NODE_URL_LUKSO=http://172.33.0.27:3500 | ||
JWT_USERS_FILE=users.json.example |
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,41 @@ | ||
version: "3.9" | ||
|
||
networks: | ||
listener-net-ci: | ||
driver: bridge | ||
|
||
volumes: | ||
mongo_data_ci: {} | ||
|
||
services: | ||
listener: | ||
build: | ||
context: listener | ||
dockerfile: Dockerfile | ||
env_file: | ||
- ci.env | ||
environment: | ||
MONGO_DB_URI: "mongodb://dappnode:dappnode@mongo:27017" | ||
depends_on: | ||
- mongo | ||
container_name: listener | ||
restart: always | ||
volumes: | ||
- ./jwt:/app/jwt ## listener expects /app/jwt to exist, careful when changing this path | ||
networks: | ||
- listener-net-ci | ||
ports: | ||
- "8080:8080" # should be same as API_PORT of ci.env | ||
|
||
mongo: | ||
build: | ||
context: mongo | ||
volumes: | ||
- mongo_data_ci:/data/db | ||
env_file: | ||
- ci.env | ||
command: ["mongod", "--config", "/etc/mongo/mongod.conf"] | ||
container_name: mongo | ||
restart: always | ||
networks: | ||
- listener-net-ci |
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 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
Oops, something went wrong.