From c746f0fce1764250709e87d121868b10eb75e56a Mon Sep 17 00:00:00 2001 From: aashikam Date: Mon, 5 Aug 2024 21:17:13 +0530 Subject: [PATCH] Update docker command to docker compose v2 --- ballerina-tests/build.gradle | 4 ++-- ballerina/build.gradle | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ballerina-tests/build.gradle b/ballerina-tests/build.gradle index 3f0ab022..387babb6 100644 --- a/ballerina-tests/build.gradle +++ b/ballerina-tests/build.gradle @@ -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() @@ -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() diff --git a/ballerina/build.gradle b/ballerina/build.gradle index baa1d901..0e80fa2b 100644 --- a/ballerina/build.gradle +++ b/ballerina/build.gradle @@ -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() @@ -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()