-
Notifications
You must be signed in to change notification settings - Fork 0
/
jhipster-devspaces.yaml
70 lines (70 loc) · 1.97 KB
/
jhipster-devspaces.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
schemaVersion: 2.1.0
metadata:
name: jhipster
version: 2.1.0
description: Stack with the JHipster Online on DevSpaces
displayName: JHipster DevSpaces
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/java-maven.jpg
versions:
- version: v2.33.0
default: true
components:
- name: tools
container:
image: 'quay.io/maximilianopizarro/jhipster-devspace'
mountSources: true
cpuLimit: '4'
cpuRequest: '1'
memoryLimit: '8G'
memoryRequest: '4G'
volumeMounts:
- name: m2
path: /home/user/.m2
- name: config
path: /home/user/.config
- name: npm
path: /home/user/.npm
endpoints:
- exposure: public
name: backend
protocol: https
targetPort: 8080
- exposure: public
name: frontend
protocol: https
targetPort: 9000
env:
- 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: JAVA_OPTS
- value: $(JAVA_OPTS)
name: MAVEN_OPTS
- value: '/home/tooling/.sdkman/candidates/java/11.0.15-tem'
name: JAVA_HOME
- name: m2
volume:
size: 512Mi
- name: config
volume:
size: 512Mi
- name: npm
volume:
size: 512Mi
commands:
- id: build
exec:
label: 'Create Tekton Pipeline and install npm dependencies'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'oc apply -f pipeline.yaml && npm install && chmod 777 ./mvnw'
group:
kind: build
isDefault: true
- id: run
exec:
label: 'Run ./mvnw'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: './mvnw'
group:
kind: run
isDefault: true