From d99a7990c28f43064990246e3130fb20800e1cb9 Mon Sep 17 00:00:00 2001 From: Krishnananthalingam Tharmigan <63336800+TharmiganK@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:16:32 +0530 Subject: [PATCH 1/4] Rename file and remove version --- ballerina/tests/resources/{docker-compose.yaml => compose.yaml} | 2 -- 1 file changed, 2 deletions(-) rename ballerina/tests/resources/{docker-compose.yaml => compose.yaml} (98%) diff --git a/ballerina/tests/resources/docker-compose.yaml b/ballerina/tests/resources/compose.yaml similarity index 98% rename from ballerina/tests/resources/docker-compose.yaml rename to ballerina/tests/resources/compose.yaml index af29406..27c7a5f 100644 --- a/ballerina/tests/resources/docker-compose.yaml +++ b/ballerina/tests/resources/compose.yaml @@ -1,5 +1,3 @@ -version: '2' - services: mosquitto: image: 'eclipse-mosquitto:latest' From 63709b68bb2e380cf50bb8a22c2c3328ccd1454a Mon Sep 17 00:00:00 2001 From: Krishnananthalingam Tharmigan <63336800+TharmiganK@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:17:48 +0530 Subject: [PATCH 2/4] Update docker command --- ballerina/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ballerina/build.gradle b/ballerina/build.gradle index 599726f..aac8cbc 100644 --- a/ballerina/build.gradle +++ b/ballerina/build.gradle @@ -100,7 +100,7 @@ task startMqttServer() { if (!stdOut.toString().contains("mqtt-test")) { println "Starting Mqtt server." exec { - commandLine 'sh', '-c', "docker-compose -f tests/resources/docker-compose.yaml up -d" + commandLine 'sh', '-c', "docker compose -f tests/resources/compose.yaml up -d" standardOutput = stdOut } println stdOut.toString() From bd300da02c5486416cf8c375574050dbe3c5a8ac Mon Sep 17 00:00:00 2001 From: Krishnananthalingam Tharmigan <63336800+TharmiganK@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:18:50 +0530 Subject: [PATCH 3/4] Update docker file name --- .../A sample temperature sensor using Ballerina MQTT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/temperature-sensor/A sample temperature sensor using Ballerina MQTT.md b/examples/temperature-sensor/A sample temperature sensor using Ballerina MQTT.md index f82f730..7b01485 100644 --- a/examples/temperature-sensor/A sample temperature sensor using Ballerina MQTT.md +++ b/examples/temperature-sensor/A sample temperature sensor using Ballerina MQTT.md @@ -20,7 +20,7 @@ send an email to the user (Note that the email sending part is not implemented i 1. [Install MQTT in your local machine](https://mosquitto.org/download/) 2. [Use MQTT with docker](https://hub.docker.com/_/eclipse-mosquitto) -* You can find the docker file used to set up the cluster for this example in [here](../../ballerina/tests/resources/docker-compose.yaml). +* You can find the docker file used to set up the cluster for this example in [here](../../ballerina/tests/resources/compose.yaml). ## Run the Example From 1e9164174417354b0346bb9bcafeb6c2312ead09 Mon Sep 17 00:00:00 2001 From: Krishnananthalingam Tharmigan <63336800+TharmiganK@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:27:25 +0530 Subject: [PATCH 4/4] Update docker command --- ballerina/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ballerina/build.gradle b/ballerina/build.gradle index aac8cbc..8e7f8f8 100644 --- a/ballerina/build.gradle +++ b/ballerina/build.gradle @@ -123,7 +123,7 @@ task stopMqttServer() { if (stdOut.toString().contains("mqtt-test")) { println "Stopping Mqtt server." exec { - commandLine 'sh', '-c', "docker-compose -f tests/resources/docker-compose.yaml rm -svf" + commandLine 'sh', '-c', "docker compose -f tests/resources/compose.yaml rm -svf" standardOutput = stdOut } println stdOut.toString()