Skip to content

Commit

Permalink
Merge pull request #255 from ayeshLK/master
Browse files Browse the repository at this point in the history
Update docker command to docker-compose v2
  • Loading branch information
ThisaruGuruge authored Aug 9, 2024
2 parents 15e534c + 119eeb7 commit 76cdb7e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-with-bal-test-graalvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Start MongoDB Server
run: |
cd ballerina/tests/resources/docker
docker-compose up -d
docker compose up -d
- name: Test with GraalVM
run: |
Expand All @@ -65,4 +65,4 @@ jobs:
- name: Stop MongoDB Server
run: |
cd ballerina/tests/resources/docker
docker-compose down
docker compose down
8 changes: 4 additions & 4 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ task startMongodbServer() {
println("Starting mongodb server...")
exec {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine 'cmd', '/c', "docker-compose -f tests/resources/docker/docker-compose.yml up && exit %%ERRORLEVEL%%"
commandLine 'cmd', '/c', "docker compose -f tests/resources/docker/docker-compose.yml up && exit %%ERRORLEVEL%%"
} else {
commandLine 'sh', '-c', "docker-compose -f tests/resources/docker/docker-compose.yml up -d"
commandLine 'sh', '-c', "docker compose -f tests/resources/docker/docker-compose.yml up -d"
}
}
}
Expand All @@ -108,9 +108,9 @@ task stopMongodbServer() {
println("Stopping mongodb server...")
exec {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
commandLine 'cmd', '/c', "docker-compose -f tests/resources/docker/docker-compose.yml down && exit %%ERRORLEVEL%%"
commandLine 'cmd', '/c', "docker compose -f tests/resources/docker/docker-compose.yml down && exit %%ERRORLEVEL%%"
} else {
commandLine 'sh', '-c', "docker-compose -f tests/resources/docker/docker-compose.yml down"
commandLine 'sh', '-c', "docker compose -f tests/resources/docker/docker-compose.yml down"
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions ballerina/tests/resources/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

services:
mongo-no-auth:
image: mongo:4.2
Expand Down
2 changes: 0 additions & 2 deletions examples/resources/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

services:
mongodb:
image: mongo:4.2
Expand Down

0 comments on commit 76cdb7e

Please sign in to comment.