-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevfile.yaml
129 lines (129 loc) · 3.47 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
schemaVersion: 2.1.0
metadata:
name: simple-quarkus-crudlh6b
attributes:
.che/che-theia-plugins.yaml: |
- id: redhat/quarkus-java11/latest
override:
sidecar: {}
- id: redhat/java/latest
override:
sidecar: {}
- id: redhat/vscode-yaml/latest
override:
sidecar: {}
- id: redhat/vscode-xml/latest
override:
sidecar: {}
.vscode/extensions.json: |-
{
"recommendations": [
"redhat/quarkus-java11",
"redhat/java",
"redhat/vscode-yaml",
"redhat/vscode-xml"
]
}
.vscode/launch.json: |
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"request": "attach",
"name": "Attach to Remote Quarkus App",
"hostName": "localhost",
"port": 5005
}
]
}
metadata-name-field: generateName
metadata-name-original-value: simple-quarkus-crudlh6b
projects:
- git:
remotes:
origin: 'https://github.com/froberge/simple-quarkus-crud.git'
name: simple-quarkus-crud
components:
- name: tools
container:
image: 'registry.redhat.io/codeready-workspaces/plugin-java11-rhel8@sha256:5409c04e09f78b0d52fea653ee95f7e9556a23ba63889bdeab2c7c7458c06105'
env:
- name: JAVA_OPTS
value: '-XX:MaxRAMPercentage=50.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom -Duser.home=/home/jboss'
- name: MAVEN_OPTS
value: $(JAVA_OPTS)
endpoints:
- exposure: public
name: shop-web-java
protocol: http
targetPort: 8080
path: /hello/greeting/che-user
- exposure: none
name: debug
protocol: http
targetPort: 5005
memoryLimit: 1G
mountSources: true
sourceMapping: /projects
volumeMounts:
- name: m2
path: /home/jboss/.m2
- name: postgres
container:
image: postgres
env:
- name: PGDATA
value: /tmp/pgdata
- name: POSTGRES_USER
value: shop
- name: POSTGRES_PASSWORD
value: shop
- name: POSTGRES_DB
value: shop
memoryLimit: 512Mi
mountSources: true
sourceMapping: /projects
volumeMounts:
- name: postgresql-data
path: /var/lib/postgresql/data
- name: m2
volume: {}
- name: postgresql-data
volume: {}
commands:
- id: package-the-application
exec:
label: 1. Package the application
component: tools
workingDir: '${PROJECTS_ROOT}/simple-quarkus-crud'
commandLine: mvn package
group:
kind: build
isDefault: true
- id: 2-start-dev
exec:
label: 2. Start Quarkus in dev mode (hot deploy + debug)
component: tools
commandLine: 'mvn compile quarkus:dev'
workingDir: '${PROJECTS_ROOT}/simple-quarkus-crud'
group:
kind: run
isDefault: true
- id: psql-init
exec:
label: psql-init
commandLine: psql -d shop -U shop -f product.sql
component: postgres
workingDir: '${PROJECTS_ROOT}/simple-quarkus-crud/src/main/resources/db'
group:
kind: run
isDefault: true
- id: psql-connect
exec:
label: psql-connect
commandLine: psql -d shop -U shop
component: postgres
group:
kind: run
isDefault: true