Skip to content

Commit

Permalink
Merge pull request #162 from elastic/feature/migrate-to-docker-compos…
Browse files Browse the repository at this point in the history
…e-v2

chore: migrate from docker-compose v1 to docker compose v2
  • Loading branch information
reakaleek authored Aug 5, 2024
2 parents 2860684 + 7cefe4b commit a306c21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The simplest way to run this demo is by using the
provided docker-compose.yml:

```bash
docker-compose up
docker compose up
```

## Running with Elastic Cloud
Expand All @@ -19,7 +19,7 @@ docker-compose up
1. Add environmental variables `ELASTIC_CLOUD_ID` and `ELASTIC_CLOUD_CREDENTIALS` (in format `login:password`)
2. Run
```bash
docker-compose -f docker-compose-elastic-cloud.yml up
docker compose -f docker-compose-elastic-cloud.yml up
```

## Testing locally
Expand Down
6 changes: 3 additions & 3 deletions tests/tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ CONTAINER="opbeans-go"

@test "build image" {
cd $BATS_TEST_DIRNAME/..
run docker-compose build
run docker compose build
assert_success
}

@test "create test container" {
run docker-compose up -d
run docker compose up -d
assert_success
}

Expand All @@ -36,6 +36,6 @@ CONTAINER="opbeans-go"
}

@test "clean test containers" {
run docker-compose down
run docker compose down
assert_success
}

0 comments on commit a306c21

Please sign in to comment.