mirror of
https://github.com/status-im/status-go.git
synced 2025-01-29 16:06:47 +00:00
test_: added local docker-compose with port binds
This commit is contained in:
parent
3e69092ae5
commit
f76cff7e3f
@ -25,7 +25,7 @@ Integration tests for status-go
|
|||||||
* Status-im contracts will be deployed to the network
|
* Status-im contracts will be deployed to the network
|
||||||
|
|
||||||
### Run tests
|
### Run tests
|
||||||
- In `integration-tests` run `docker compose -f docker-compose.anvil.yml -f docker-compose.test.status-go.yml up --build --remove-orphans`, as result:
|
- In `integration-tests` run `docker compose -f docker-compose.anvil.yml -f docker-compose.test.status-go.yml -f docker-compose.status-go.local.yml up --build --remove-orphans`, as result:
|
||||||
* a container with [status-go as daemon](https://github.com/status-im/status-go/issues/5175) will be created with APIModules exposed on `0.0.0.0:3333`
|
* a container with [status-go as daemon](https://github.com/status-im/status-go/issues/5175) will be created with APIModules exposed on `0.0.0.0:3333`
|
||||||
* status-go will use [anvil](https://book.getfoundry.sh/reference/anvil/) as RPCURL with ChainID 31337
|
* status-go will use [anvil](https://book.getfoundry.sh/reference/anvil/) as RPCURL with ChainID 31337
|
||||||
* all Status-im contracts will be deployed to the network
|
* all Status-im contracts will be deployed to the network
|
||||||
|
11
integration-tests/docker-compose.status-go.local.yml
Normal file
11
integration-tests/docker-compose.status-go.local.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
services:
|
||||||
|
anvil:
|
||||||
|
ports:
|
||||||
|
- 8545:8545
|
||||||
|
status-go:
|
||||||
|
ports:
|
||||||
|
- 3333:3333
|
||||||
|
- 8354:8354
|
||||||
|
status-go-no-funds:
|
||||||
|
ports:
|
||||||
|
- 3334:3333
|
@ -8,12 +8,6 @@ services:
|
|||||||
build_tags: gowaku_no_rln
|
build_tags: gowaku_no_rln
|
||||||
build_target: statusd
|
build_target: statusd
|
||||||
build_flags: -cover
|
build_flags: -cover
|
||||||
-ldflags="
|
|
||||||
-X github.com/status-im/status-go/params.Version=
|
|
||||||
-X github.com/status-im/status-go/params.GitCommit=11f83780d
|
|
||||||
-X github.com/status-im/status-go/params.IpfsGatewayURL=https://ipfs.status.im/
|
|
||||||
-X github.com/status-im/status-go/vendor/github.com/ethereum/go-ethereum/metrics.EnabledStr=true
|
|
||||||
"
|
|
||||||
entrypoint: [
|
entrypoint: [
|
||||||
"statusd",
|
"statusd",
|
||||||
"-c", "/static/configs/config.json",
|
"-c", "/static/configs/config.json",
|
||||||
@ -22,9 +16,6 @@ services:
|
|||||||
"--password", "Strong12345",
|
"--password", "Strong12345",
|
||||||
"--dir", "/tmp/status-go-data", # Keep in sync with `config.json/DataDir` value. Later this arg will not be needed.
|
"--dir", "/tmp/status-go-data", # Keep in sync with `config.json/DataDir` value. Later this arg will not be needed.
|
||||||
]
|
]
|
||||||
# ports:
|
|
||||||
# - 3333:3333
|
|
||||||
# - 8354:8354 # use for local debbuging only
|
|
||||||
healthcheck:
|
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"]
|
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
|
interval: 5s
|
||||||
@ -46,12 +37,6 @@ services:
|
|||||||
build_tags: gowaku_no_rln
|
build_tags: gowaku_no_rln
|
||||||
build_target: statusd
|
build_target: statusd
|
||||||
build_flags: -cover
|
build_flags: -cover
|
||||||
-ldflags="
|
|
||||||
-X github.com/status-im/status-go/params.Version=
|
|
||||||
-X github.com/status-im/status-go/params.GitCommit=11f83780d
|
|
||||||
-X github.com/status-im/status-go/params.IpfsGatewayURL=https://ipfs.status.im/
|
|
||||||
-X github.com/status-im/status-go/vendor/github.com/ethereum/go-ethereum/metrics.EnabledStr=true
|
|
||||||
"
|
|
||||||
entrypoint: [
|
entrypoint: [
|
||||||
"statusd",
|
"statusd",
|
||||||
"-c", "/static/configs/config.json",
|
"-c", "/static/configs/config.json",
|
||||||
@ -59,8 +44,6 @@ services:
|
|||||||
"--password", "Strong12345",
|
"--password", "Strong12345",
|
||||||
"--dir", "/tmp/status-go-data", # Keep in sync with `config.json/DataDir` value. Later this arg will not be needed.
|
"--dir", "/tmp/status-go-data", # Keep in sync with `config.json/DataDir` value. Later this arg will not be needed.
|
||||||
]
|
]
|
||||||
# ports:
|
|
||||||
# - 3334:3333 # use for local debbuging only
|
|
||||||
healthcheck:
|
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"]
|
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
|
interval: 5s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user