-
Notifications
You must be signed in to change notification settings - Fork 18
/
devfile.yaml
71 lines (71 loc) · 2.05 KB
/
devfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
apiVersion: 1.0.0
metadata:
name: todo-spring-quarkus
projects:
- name: todo-spring-quarkus
source:
location: 'https://github.com/edeandrea/todo-spring-quarkus'
type: git
branch: main
components:
- id: redhat/quarkus-java11/latest
type: chePlugin
- mountSources: true
endpoints:
- name: todo-application
port: 8080
memoryLimit: 1024Mi
type: dockerimage
volumes:
- name: m2
containerPath: /home/jboss/.m2
alias: todo-application
image: 'registry.redhat.io/codeready-workspaces/plugin-java11-rhel8:latest'
env:
- value: '-XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Djava.security.egd=file:/dev/./urandom -Duser.home=/home/jboss'
name: JAVA_OPTS
- value: $(JAVA_OPTS)
name: MAVEN_OPTS
- alias: tododb
endpoints:
- name: tododb
port: 5432
memoryLimit: 1024Mi
type: dockerimage
image: 'registry.redhat.io/rhel8/postgresql-13:latest'
env:
- value: todo
name: POSTGRESQL_USER
- value: todo
name: POSTGRESQL_PASSWORD
- value: tododb
name: POSTGRESQL_DATABASE
commands:
- name: 1. Run as Spring Boot
actions:
- workdir: '${CHE_PROJECTS_ROOT}/todo-spring-quarkus'
type: exec
command: './mvnw clean spring-boot:run'
component: todo-application
- name: 2. Run as Quarkus
actions:
- workdir: '${CHE_PROJECTS_ROOT}/todo-spring-quarkus'
type: exec
command: './.mvnw clean spring-boot:run'
component: todo-application
- name: Attach remote debugger
actions:
- referenceContent: |
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"request": "attach",
"name": "Attach to Remote App",
"hostName": "localhost",
"port": 5005
}
]
}
type: vscode-launch