From f76cff7e3f31a6b5e9cfc33f0c48049386f8691d Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 1 Oct 2024 12:09:46 +0200 Subject: [PATCH] test_: added local docker-compose with port binds --- integration-tests/README.MD | 2 +- .../docker-compose.status-go.local.yml | 11 +++++++++++ .../docker-compose.test.status-go.yml | 17 ----------------- 3 files changed, 12 insertions(+), 18 deletions(-) create mode 100644 integration-tests/docker-compose.status-go.local.yml diff --git a/integration-tests/README.MD b/integration-tests/README.MD index 61c291ca5..8799d6050 100644 --- a/integration-tests/README.MD +++ b/integration-tests/README.MD @@ -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 diff --git a/integration-tests/docker-compose.status-go.local.yml b/integration-tests/docker-compose.status-go.local.yml new file mode 100644 index 000000000..3d04cf592 --- /dev/null +++ b/integration-tests/docker-compose.status-go.local.yml @@ -0,0 +1,11 @@ +services: + anvil: + ports: + - 8545:8545 + status-go: + ports: + - 3333:3333 + - 8354:8354 + status-go-no-funds: + ports: + - 3334:3333 diff --git a/integration-tests/docker-compose.test.status-go.yml b/integration-tests/docker-compose.test.status-go.yml index 19215a496..5b0b9b466 100644 --- a/integration-tests/docker-compose.test.status-go.yml +++ b/integration-tests/docker-compose.test.status-go.yml @@ -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", @@ -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 @@ -46,12 +37,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", @@ -59,8 +44,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: - # - 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