We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 667b0bf commit 6aebabeCopy full SHA for 6aebabe
2 files changed
docker/HealthCheck.jar
39 Bytes
docker/HealthCheck.java
@@ -20,9 +20,11 @@
20
21
public class HealthCheck {
22
public static void main(String[] args) throws IOException, InterruptedException {
23
+ final var port = args.length > 0 ? args[0] : "8080";
24
+
25
final var client = HttpClient.newHttpClient();
26
final var request = HttpRequest.newBuilder()
- .uri(URI.create("http://localhost:8080/actuator/health"))
27
+ .uri(URI.create("http://localhost:" + port + "/actuator/health"))
28
.header("accept", "application/json")
29
.build();
30
0 commit comments