From d89f456247ff3726e8f02b1f6baddabd7498e8c1 Mon Sep 17 00:00:00 2001 From: Alfredo Oliviero Date: Tue, 27 Feb 2024 16:07:27 +0100 Subject: [PATCH] starter e config --- .vscode/launch.json | 2 +- buildImageAndStart.sh | 5 ++--- buildImageAndStartWithDebug.sh | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index ecaf77f..c8b3b09 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -7,7 +7,7 @@ { "type": "java", "name": "Debug (Attach)", - "projectName": "identity-manager", + "projectName": "helloword", "request": "attach", "hostName": "localhost", "port": 5001 diff --git a/buildImageAndStart.sh b/buildImageAndStart.sh index ddb51ca..cc7194d 100755 --- a/buildImageAndStart.sh +++ b/buildImageAndStart.sh @@ -4,6 +4,5 @@ NAME=smartgears-helloworld PORT=8081 DEBUG_PORT=5001 -docker build -t $NAME. -docker run -p $PORT:8080 --name $NAME $NAME - +docker build -t $NAME . +docker run -p $PORT:8080 $NAME \ No newline at end of file diff --git a/buildImageAndStartWithDebug.sh b/buildImageAndStartWithDebug.sh index 1deba49..37ee33c 100755 --- a/buildImageAndStartWithDebug.sh +++ b/buildImageAndStartWithDebug.sh @@ -5,4 +5,5 @@ PORT=8081 DEBUG_PORT=5001 docker build -t $NAME . -docker run -p $PORT:8080 -p $DEBUG_PORT:5005 -e JAVA_TOOL_OPTIONS="-agentlib:jdwp=transport=dt_socket,address=*:5005,server=y,suspend=y" $NAME + +docker run -p $PORT:8080 -p $DEBUG_PORT:5005 -e JAVA_TOOL_OPTIONS="-agentlib:jdwp=transport=dt_socket,address=*:5005,server=y,suspend=y" $NAME