2024-06-12 09:47:41 +00:00
|
|
|
services:
|
|
|
|
status-go:
|
2024-10-03 13:51:51 +00:00
|
|
|
user: ${FUNCTIONAL_TESTS_DOCKER_UID}
|
2024-06-12 09:47:41 +00:00
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: _assets/build/Dockerfile
|
|
|
|
args:
|
2024-10-04 12:55:28 +00:00
|
|
|
build_tags: gowaku_no_rln,enable_private_api
|
2024-06-12 09:47:41 +00:00
|
|
|
build_target: statusd
|
2024-09-24 15:33:26 +00:00
|
|
|
build_flags: -cover
|
|
|
|
entrypoint: [
|
|
|
|
"statusd",
|
|
|
|
"-c", "/static/configs/config.json",
|
|
|
|
"--server", "0.0.0.0:8354",
|
|
|
|
"--seed-phrase", "test test test test test test test test test test test junk",
|
|
|
|
"--password", "Strong12345",
|
|
|
|
"--dir", "/tmp/status-go-data", # Keep in sync with `config.json/DataDir` value. Later this arg will not be needed.
|
|
|
|
]
|
2024-08-13 12:46:48 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "curl -X POST --data '{\"jsonrpc\":\"2.0\",\"method\":\"net_version\",\"params\":[],\"id\":1}' -H 'Content-Type: application/json' http://0.0.0.0:3333 || exit 1"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 2s
|
|
|
|
retries: 120
|
2024-09-24 15:33:26 +00:00
|
|
|
environment:
|
|
|
|
GOCOVERDIR: "/coverage/binary"
|
|
|
|
volumes:
|
|
|
|
- ./coverage/binary:/coverage/binary
|
|
|
|
stop_signal: SIGINT
|
2024-08-13 12:46:48 +00:00
|
|
|
|
2024-10-07 15:40:18 +00:00
|
|
|
status-backend:
|
|
|
|
user: ${INTEGRATION_TESTS_DOCKER_UID}
|
2024-08-13 12:46:48 +00:00
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: _assets/build/Dockerfile
|
|
|
|
args:
|
2024-10-04 12:55:28 +00:00
|
|
|
build_tags: gowaku_no_rln,enable_private_api
|
2024-10-07 15:40:18 +00:00
|
|
|
build_target: status-backend
|
2024-09-24 15:33:26 +00:00
|
|
|
build_flags: -cover
|
|
|
|
entrypoint: [
|
2024-10-07 15:40:18 +00:00
|
|
|
"status-backend",
|
|
|
|
"--address", "0.0.0.0:3333",
|
2024-09-24 15:33:26 +00:00
|
|
|
]
|
2024-07-04 10:50:15 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "curl -X POST --data '{\"jsonrpc\":\"2.0\",\"method\":\"net_version\",\"params\":[],\"id\":1}' -H 'Content-Type: application/json' http://0.0.0.0:3333 || exit 1"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 2s
|
|
|
|
retries: 120
|
2024-09-24 15:33:26 +00:00
|
|
|
environment:
|
|
|
|
GOCOVERDIR: "/coverage/binary"
|
|
|
|
volumes:
|
|
|
|
- ./coverage/binary:/coverage/binary
|
|
|
|
stop_signal: SIGINT
|
2024-07-04 10:50:15 +00:00
|
|
|
|
|
|
|
tests-rpc:
|
2024-10-03 13:51:51 +00:00
|
|
|
user: ${FUNCTIONAL_TESTS_DOCKER_UID}
|
2024-07-04 10:50:15 +00:00
|
|
|
depends_on:
|
|
|
|
status-go:
|
|
|
|
condition: service_healthy
|
2024-10-07 15:40:18 +00:00
|
|
|
status-backend:
|
2024-09-16 08:23:57 +00:00
|
|
|
condition: service_healthy
|
2024-07-04 10:50:15 +00:00
|
|
|
deploy-communities-contracts:
|
|
|
|
condition: service_completed_successfully
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.tests-rpc
|
2024-09-24 15:33:26 +00:00
|
|
|
entrypoint: [
|
|
|
|
"pytest",
|
2024-10-07 15:40:18 +00:00
|
|
|
"-m", "rpc",
|
2024-09-25 12:27:04 +00:00
|
|
|
"--anvil_url=http://anvil:8545",
|
2024-10-07 15:40:18 +00:00
|
|
|
"--rpc_url_statusd=http://status-go:3333",
|
2024-11-15 11:48:39 +00:00
|
|
|
"--status_backend_urls=${STATUS_BACKEND_URLS}",
|
2024-10-07 15:40:18 +00:00
|
|
|
"--ws_url_statusd=ws://status-go:8354",
|
|
|
|
"--junitxml=/tests-rpc/reports/report.xml"
|
2024-09-24 15:33:26 +00:00
|
|
|
]
|
2024-07-04 10:50:15 +00:00
|
|
|
volumes:
|
|
|
|
- .:/tests-rpc
|