-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yaml
More file actions
74 lines (74 loc) · 2.02 KB
/
devfile.yaml
File metadata and controls
74 lines (74 loc) · 2.02 KB
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: countertable-
projects: []
components:
- type: chePlugin
id: redhat/java8/latest
- type: dockerimage
alias: maven
image: 'camino.azurecr.io/camino/che-java8-maven:nightly'
env:
- name: MAVEN_CONFIG
value: ''
- 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/user'
- name: MAVEN_OPTS
value: $(JAVA_OPTS)
memoryLimit: 512Mi
mountSources: true
endpoints:
- attributes:
discoverable: 'true'
public: 'false'
name: api
port: 5001
volumes:
- name: m2
containerPath: /home/user/.m2
- type: dockerimage
alias: ipfs
image: 'monaparty/go-ipfs:latest'
env:
- name: IPFS_PROFILE
value: server
memoryLimit: 300Mi
endpoints:
- attributes:
discoverable: 'true'
public: 'false'
name: api
port: 5001
volumes:
- name: data
containerPath: /data/ipfs
mountSources: true
commands:
- name: maven build
actions:
- type: exec
component: maven
command: mvn clean install
workdir: '${CHE_PROJECTS_ROOT}/countertable'
- name: run
actions:
- type: exec
component: maven
command: |
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y \
-jar target/countertable-1.0.jar
workdir: '${CHE_PROJECTS_ROOT}/countertable'
- name: Debug remote
actions:
- type: vscode-launch
referenceContent: |
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Attach)",
"request": "attach",
"hostName": "localhost",
"port": 5005
},