mirror of
https://git.imnavajas.es/jjimenez/printhub.git
synced 2026-01-13 00:48:48 +00:00
ultima version del docker y launch y tasks
This commit is contained in:
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
target/
|
||||||
9
.vscode/launch.json
vendored
9
.vscode/launch.json
vendored
@ -1,17 +1,14 @@
|
|||||||
{
|
{
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"type": "java",
|
"type": "java",
|
||||||
"name": "Depurar Spring Boot en Docker",
|
"name": "Debug Spring Boot in Docker",
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
"hostName": "localhost",
|
"hostName": "localhost",
|
||||||
"port": 5005,
|
"port": 5005,
|
||||||
"preLaunchTask": "Run Spring Boot in Docker with Debug",
|
"preLaunchTask": "Start Spring Boot in Docker (Debug)",
|
||||||
"postDebugTask": "Stop Spring Boot in Docker",
|
"postDebugTask": "Stop Spring Boot in Docker"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
23
.vscode/tasks.json
vendored
23
.vscode/tasks.json
vendored
@ -2,27 +2,30 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "Run Spring Boot in Docker with Debug",
|
"label": "Start Spring Boot in Docker (Debug)",
|
||||||
"type": "process",
|
"type": "process",
|
||||||
"command": "docker",
|
"command": "docker",
|
||||||
"args": [
|
"args": [
|
||||||
"exec",
|
"exec",
|
||||||
"-it",
|
"-i",
|
||||||
"springboot-dev",
|
"springboot-dev",
|
||||||
"./mvnw",
|
"sh",
|
||||||
"spring-boot:run",
|
"-c",
|
||||||
"-Dspring-boot.run.jvmArguments=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
|
"./mvnw spring-boot:run -o -Dspring-boot.run.fork=false -Dmaven.resources.skip=true -Dmaven.test.skip=true -Dspring-boot.run.jvmArguments=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
|
||||||
],
|
],
|
||||||
"problemMatcher": [],
|
"isBackground": true,
|
||||||
"group": {
|
"problemMatcher": {
|
||||||
"kind": "build",
|
"background": {
|
||||||
"isDefault": true
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": ".*",
|
||||||
|
"endsPattern": "Listening for transport dt_socket at address: 5005"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Stop Spring Boot in Docker",
|
"label": "Stop Spring Boot in Docker",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "docker exec springboot-dev pkill -f spring-boot:run",
|
"command": "docker exec springboot-dev pkill -f jdwp=transport",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -23,6 +23,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./:/app
|
- ./:/app
|
||||||
- ./m2:/root/.m2
|
- ./m2:/root/.m2
|
||||||
|
- ./target:/app/target
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
- "5005:5005"
|
- "5005:5005"
|
||||||
|
|||||||
4
pom.xml
4
pom.xml
@ -68,8 +68,12 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<addResources>false</addResources>
|
||||||
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
Reference in New Issue
Block a user