Skip to content

Commit

Permalink
Update docker command to docker-compose v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Aug 2, 2024
1 parent d52df91 commit 0ebf6e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ task startActiveMQServer() {
if (!stdOut.toString().contains("activemq-test")) {
println "Starting ActiveMQ 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 @@ -136,7 +136,7 @@ task stopActiveMQServer() {
if (stdOut.toString().contains("activemq-test")) {
println "Stopping ActiveMQ 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: '2'

services:
activemq:
image: 'apache/activemq-classic:6.0.0'
Expand Down
2 changes: 0 additions & 2 deletions examples/ez-food/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2'

services:
order-svc:
image: 'ballerina/ordersvc:1.0.0'
Expand Down

0 comments on commit 0ebf6e6

Please sign in to comment.