Skip to content

Commit

Permalink
Merge pull request #187 from ballerina-platform/TharmiganK-patch-1
Browse files Browse the repository at this point in the history
Update docker command to docker compose v2
  • Loading branch information
TharmiganK authored Aug 3, 2024
2 parents 6d589db + 1e91641 commit c7f41f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '2'

services:
mosquitto:
image: 'eclipse-mosquitto:latest'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c7f41f2

Please sign in to comment.