forked from scala-steward/console-scala-simple-1
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdevfile.yaml
102 lines (91 loc) · 2.13 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
schemaVersion: 2.2.2
metadata:
name: scala-sbt
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
env:
- name: JDK_JAVA_OPTIONS
value: >-
-XX:MaxRAMPercentage=80 -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
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5005
- exposure: public
name: 8080-https
protocol: https
targetPort: 8080
volumeMounts:
- name: sbt
path: /home/user/.sbt
- name: ivy2
path: /home/user/.ivy2
- name: cache
path: /home/user/.cache
- name: coursier
path: /home/user/.cache/coursier
- name: metals
path: /home/user/.cache/metals
- name: bloop
path: /home/user/.cache/bloop
memoryLimit: 5Gi
mountSources: true
- name: sbt
volume:
size: 1G
- name: ivy2
volume:
size: 1G
- name: cache
volume:
size: 1G
- name: coursier
volume:
size: 1G
- name: metals
volume:
size: 1G
- name: bloop
volume:
size: 1G
commands:
- id: build
exec:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "./sbt +Test/compile"
group:
kind: build
isDefault: true
- id: package
exec:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "./sbt +publishLocal"
group:
kind: build
- id: sbt-repl
exec:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "./sbt"
group:
kind: run
- id: run
exec:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "./sbt run"
group:
kind: run
isDefault: true
- id: test
exec:
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "./sbt +test"
group:
kind: run