Skip to content

Commit

Permalink
build(e2e): docker-compose missing in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Aug 5, 2024
1 parent 859482a commit 2e9a7b8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,12 @@ build_c-amazonlinux:
# Run a 4-node testnet locally
localnet-start: localnet-stop build-docker-localnode
@if ! [ -f build/node0/config/genesis.json ]; then docker run --rm -v $(CURDIR)/build:/tendermint:Z dashpay/tenderdash testnet --config /etc/tendermint/config-template.toml --o . --starting-ip-address 192.167.10.2; fi
docker-compose up
docker compose up
.PHONY: localnet-start

# Stop testnet
localnet-stop:
docker-compose down
docker compose down
.PHONY: localnet-stop

# Build hooks for dredd, to skip or add information on some steps
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ To change the number of validators / non-validators change the `localnet-start`
```makefile
localnet-start: localnet-stop
@if ! [ -f build/node0/config/genesis.json ]; then docker run --rm -v $(CURDIR)/build:/tendermint:Z dashpay/tenderdash:localnode testnet --v 5 --n 3 --o . --populate-persistent-peers --starting-ip-address 192.167.10.2 ; fi
docker-compose up
docker compose up
```

The command now will generate config files for 5 validators and 3
Expand Down
4 changes: 2 additions & 2 deletions spec/ivy-proofs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The license above applies to all files in this folder.
The easiest way to check the proofs is to use [Docker](https://www.docker.com/).

1. Install [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/install/).
2. Build a Docker image: `docker-compose build`
3. Run the proofs inside the Docker container: `docker-compose run
2. Build a Docker image: `docker compose build`
3. Run the proofs inside the Docker container: `docker compose run
tendermint-proof`. This will check all the proofs with the `ivy_check`
command and write the output of `ivy_check` to a subdirectory of `./output/'
4 changes: 2 additions & 2 deletions test/e2e/pkg/infra/docker/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import (
// execCompose runs a Docker Compose command for a testnet.
func execCompose(ctx context.Context, dir string, args ...string) error {
return exec.Command(ctx, append(
[]string{"docker-compose", "--ansi=never", "-f", filepath.Join(dir, "docker-compose.yml")},
[]string{"docker","compose", "--ansi=never", "-f", filepath.Join(dir, "docker-compose.yml")},
args...)...)
}

// execComposeVerbose runs a Docker Compose command for a testnet and displays its output.
func execComposeVerbose(ctx context.Context, dir string, args ...string) error {
return exec.CommandVerbose(ctx, append(
[]string{"docker-compose", "--ansi=never", "-f", filepath.Join(dir, "docker-compose.yml")},
[]string{"docker","compose", "--ansi=never", "-f", filepath.Join(dir, "docker-compose.yml")},
args...)...)
}

Expand Down

0 comments on commit 2e9a7b8

Please sign in to comment.