Skip to content

Commit

Permalink
Merge pull request #877 from aashikam/dockerv2
Browse files Browse the repository at this point in the history
Update docker command to docker compose v2
  • Loading branch information
niveathika authored Aug 5, 2024
2 parents 17acbae + c746f0f commit b804dc6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 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/docker-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/docker-compose.yaml rm -svf"
commandLine 'sh', '-c', "docker compose -f tests/server/compose.yaml rm -svf"
standardOutput = stdOut
}
println stdOut.toString()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
nats-tls:
image: nats:latest
Expand Down
6 changes: 3 additions & 3 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
org = "ballerinax"
name = "nats"
version = "3.0.0"
version = "3.0.1"
authors = ["Ballerina"]
keywords = ["service", "client", "messaging", "network", "pubsub"]
repository = "https://github.com/ballerina-platform/module-ballerinax-nats"
Expand All @@ -18,8 +18,8 @@ path = "./lib/jnats-2.16.0.jar"
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "nats-native"
version = "3.0.0"
path = "../native/build/libs/nats-native-3.0.0.jar"
version = "3.0.1"
path = "../native/build/libs/nats-native-3.0.1-SNAPSHOT.jar"

[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
Expand Down
2 changes: 1 addition & 1 deletion ballerina/CompilerPlugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ id = "nats-compiler-plugin"
class = "io.ballerina.stdlib.nats.plugin.NatsCompilerPlugin"

[[dependency]]
path = "../compiler-plugin/build/libs/nats-compiler-plugin-3.0.0.jar"
path = "../compiler-plugin/build/libs/nats-compiler-plugin-3.0.1-SNAPSHOT.jar"
4 changes: 2 additions & 2 deletions ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ modules = [
[[package]]
org = "ballerina"
name = "crypto"
version = "2.7.0"
version = "2.7.2"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "time"}
Expand Down Expand Up @@ -187,7 +187,7 @@ modules = [
[[package]]
org = "ballerinax"
name = "nats"
version = "3.0.0"
version = "3.0.1"
dependencies = [
{org = "ballerina", name = "constraint"},
{org = "ballerina", name = "crypto"},
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/docker-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/docker-compose.yaml rm -svf"
commandLine 'sh', '-c', "docker compose -f tests/server/compose.yaml rm -svf"
standardOutput = stdOut
}
println stdOut.toString()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
nats-1:
image: nats:latest
Expand Down

0 comments on commit b804dc6

Please sign in to comment.