-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathdevfile.yaml
74 lines (74 loc) · 2.24 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
---
apiVersion: 1.0.0
metadata:
generateName: quarkus-tutorial-
attributes:
persistVolumes: "false"
projects:
- name: maven
source:
type: git
location: "https://github.com/redhat-developer-demos/quarkus-tutorial.git"
sparseCheckoutDir: .m2
components:
- id: redhat/vscode-yaml/latest
type: chePlugin
- id: redhat/vscode-xml/latest
type: chePlugin
- type: chePlugin
reference: https://github.com/eclipse/che-plugin-registry/raw/master/v3/plugins/redhat/quarkus-java11/1.3.0/meta.yaml
- type: dockerimage
alias: centos-quarkus-maven
image: quay.io/eclipse/che-quarkus:nightly
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=/projects/maven
- name: MAVEN_OPTS
value: $(JAVA_OPTS)
volumes:
- name: m2
containerPath: /home/theia/.m2
memoryLimit: 4Gi
mountSources: true
- alias: m2repo-cache
mountSources: true
memoryLimit: 64M
type: dockerimage
image: "quay.io/rhdevelopers/quarkus-maven-repo-cache:1.4.2.Final"
volumes:
- name: m2
containerPath: /work/volumes/.m2
args: ["/usr/local/bin/che-entrypoint-run.sh", "sleep", "infinity"]
- type: dockerimage
alias: ubi-quarkus-native-image
image: "quay.io/quarkus/ubi-quarkus-native-image:20.0.0-java11"
memoryLimit: 32M
mountSources: true
command: ["tail"]
args: ["-f", "/dev/null"]
- alias: db
type: kubernetes
reference: https://raw.githubusercontent.com/redhat-developer-demos/quarkus-tutorial/master/component-images.yaml
selector:
app: database
commands:
- name: Attach remote debugger
actions:
- type: vscode-launch
referenceContent: |
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"request": "attach",
"name": "Attach to Remote Quarkus App",
"hostName": "localhost",
"port": 5005
}
]
}