-
Notifications
You must be signed in to change notification settings - Fork 0
/
.devfile-vscode.yaml
62 lines (62 loc) · 1.61 KB
/
.devfile-vscode.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
schemaVersion: 2.1.0
metadata:
generateName: keynote1-photo-generator
attributes:
controller.devfile.io/storage-type: ephemeral
components:
- name: development-tooling
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.4
env:
- name: QUARKUS_HTTP_HOST
value: 0.0.0.0
- name: MAVEN_OPTS
value: "-Dmaven.repo.local=/home/user/.m2/repository"
memoryLimit: 5Gi
cpuLimit: 2500m
volumeMounts:
- name: m2
path: /home/user/.m2
endpoints:
- name: quarkus-development-server
targetPort: 8080
exposure: public
secure: false
protocol: http
- name: debug
targetPort: 5005
exposure: none
secure: false
protocol: tcp
- name: tests
targetPort: 8081
exposure: none
secure: false
protocol: tcp
- name: m2
volume:
size: 1G
commands:
- id: package
exec:
label: "1. Package the application"
component: development-tooling
commandLine: "./mvnw package"
group:
kind: build
isDefault: true
- id: start-dev
exec:
label: "2. Start Development mode (Hot reload + debug)"
component: development-tooling
commandLine: "./mvnw compile quarkus:dev"
group:
kind: run
isDefault: true
- id: fix-java-version
exec:
component: development-tooling
commandLine: 'rm -rf ${HOME}/.java/current/* && ln -s /usr/lib/jvm/java-17-openjdk/* ${HOME}/.java/current'
events:
postStart:
- fix-java-version