Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
aashikam committed Nov 28, 2023
1 parent a1e07c6 commit 37817bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ task startNatsServers() {
} else {
println "NATS Basic server is already started."
}
// Get the IP address of the container
stdOut.reset()
exec {
commandLine 'sh', '-c', "docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $containerId"
standardOutput = stdOut
}
def ipAddress = stdOut.toString().trim()
println "NATS Basic server IP address: $ipAddress"
}
}
}
Expand Down

0 comments on commit 37817bd

Please sign in to comment.