Skip to content

Commit

Permalink
test_: added local docker-compose with port binds
Browse files Browse the repository at this point in the history
  • Loading branch information
antdanchenko committed Oct 1, 2024
1 parent 3e69092 commit f76cff7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion integration-tests/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Integration tests for status-go
* Status-im contracts will be deployed to the network

### 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`
* 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
Expand Down
11 changes: 11 additions & 0 deletions integration-tests/docker-compose.status-go.local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
services:
anvil:
ports:
- 8545:8545
status-go:
ports:
- 3333:3333
- 8354:8354
status-go-no-funds:
ports:
- 3334:3333
17 changes: 0 additions & 17 deletions integration-tests/docker-compose.test.status-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ services:
build_tags: gowaku_no_rln
build_target: statusd
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: [
"statusd",
"-c", "/static/configs/config.json",
Expand All @@ -22,9 +16,6 @@ services:
"--password", "Strong12345",
"--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:
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
Expand All @@ -46,21 +37,13 @@ services:
build_tags: gowaku_no_rln
build_target: statusd
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: [
"statusd",
"-c", "/static/configs/config.json",
"--seed-phrase", "test test test test test test test test test test test takoe",
"--password", "Strong12345",
"--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:
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
Expand Down

0 comments on commit f76cff7

Please sign in to comment.