Skip to content

Commit

Permalink
Merge pull request #47 from ayeshLK/build-ins
Browse files Browse the repository at this point in the history
Update docker command to docker-compose v2
  • Loading branch information
ayeshLK authored Aug 19, 2024
2 parents 098ff52 + 7b6755f commit 8308ffe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ task commitTomlFiles {
if (!stdOut.toString().contains("ibmmq-test")) {
println "Starting IBMMQ server."
exec {
commandLine 'sh', '-c', "docker-compose -f tests/resources/docker-compose.yaml up -d"
commandLine 'sh', '-c', "docker compose -f tests/resources/docker-compose.yaml up -d"
standardOutput = stdOut
}
println stdOut.toString()
Expand All @@ -148,7 +148,7 @@ task commitTomlFiles {
if (stdOut.toString().contains("ibmmq-test")) {
println "Stopping IBMMQ server."
exec {
commandLine 'sh', '-c', "docker-compose -f tests/resources/docker-compose.yaml rm -svf"
commandLine 'sh', '-c', "docker compose -f tests/resources/docker-compose.yaml rm -svf"
standardOutput = stdOut
}
println stdOut.toString()
Expand Down
2 changes: 0 additions & 2 deletions ballerina/tests/resources/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.9"

services:
mq:
image: icr.io/ibm-messaging/mq:latest
Expand Down

0 comments on commit 8308ffe

Please sign in to comment.