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
aashikam committed Aug 5, 2024
1 parent 2709504 commit c746f0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ballerina-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ task startNatsServersForTests() {
if (!stdOut.toString().contains("server_nats-tls_1")) {
println "Starting NATS Basic server."
exec {
commandLine 'sh', '-c', "docker-compose -f tests/server/compose.yaml up -d"
commandLine 'sh', '-c', "docker compose -f tests/server/compose.yaml up -d"
standardOutput = stdOut
}
println stdOut.toString()
Expand Down Expand Up @@ -141,7 +141,7 @@ task stopNatsServersForTests() {
if (stdOut.toString().contains("server_nats-tls_1")) {
println "Stopping NATS server."
exec {
commandLine 'sh', '-c', "docker-compose -f tests/server/compose.yaml rm -svf"
commandLine 'sh', '-c', "docker compose -f tests/server/compose.yaml rm -svf"
standardOutput = stdOut
}
println stdOut.toString()
Expand Down
4 changes: 2 additions & 2 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ task startNatsServers() {
if (!stdOut.toString().contains("server_nats-tls_1")) {
println "Starting NATS Basic server."
exec {
commandLine 'sh', '-c', "docker-compose -f tests/server/compose.yaml up -d"
commandLine 'sh', '-c', "docker compose -f tests/server/compose.yaml up -d"
standardOutput = stdOut
}
println stdOut.toString()
Expand All @@ -138,7 +138,7 @@ task stopNatsServers() {
if (stdOut.toString().contains("server_nats-tls_1")) {
println "Stopping NATS server."
exec {
commandLine 'sh', '-c', "docker-compose -f tests/server/compose.yaml rm -svf"
commandLine 'sh', '-c', "docker compose -f tests/server/compose.yaml rm -svf"
standardOutput = stdOut
}
println stdOut.toString()
Expand Down

0 comments on commit c746f0f

Please sign in to comment.