8000 Label owner service - allow for remote debugging · PawelPacholek/java-gcp-pubsub@b2545f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit b2545f7

Browse files
committed
Label owner service - allow for remote debugging
1 parent 9e5c07e commit b2545f7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

e-2-e-tests/src/test/java/com/e2e_tests/E2ETests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ public void simpleEndToEndTest() {
8888
GenericContainer labelOwnerService = LabelOwnerService.startContainer(emulatorProperties);
8989
try {
9090
System.out.println("Main owner service container name: " + mainOwnerService.getContainerName());
91+
System.out.println("Main owner service debugger mapped port: " + mainOwnerService.getMappedPort(5005));
9192
System.out.println("Label owner service container name: " + labelOwnerService.getContainerName());
93+
System.out.println("Label owner service debugger mapped port: " + labelOwnerService.getMappedPort(5005));
9294

9395
int mainOwnerServiceMappedPort = mainOwnerService.getMappedPort(8080);
9496
Long ownerId = 7L;

e-2-e-tests/src/test/java/com/e2e_tests/label_owner_service/LabelOwnerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static GenericContainer<?> startContainer(PubSubEmulator.EmulatorProperti
3030
.withEnv("GOOGLE_APPLICATION_CREDENTIALS", credentialsPath)
3131
.withCopyFileToContainer(credentials, credentialsPath)
3232
.withCopyFileToContainer(entrypoint, "/app/entrypoint.sh")
33-
.withExposedPorts(8081)
33+
.withExposedPorts(8081, 5006)
3434
.withCreateContainerCmdModifier(cmd -> cmd.withName("LabelOwnerService_container"));
3535
container.start();
3636
return container;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
{
4-
java -cp @/app/jib-classpath-file com.label_owner_service.run.LabelOwnerServiceApplication
4+
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5006 -cp @/app/jib-classpath-file com.label_owner_service.run.LabelOwnerServiceApplication
55
} || {
66
sleep infinity
77
}

0 commit comments

Comments
 (0)
0