forked from jhipster/jhipster-online
-
Notifications
You must be signed in to change notification settings - Fork 1
/
devfile.yaml
118 lines (118 loc) · 3.36 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
schemaVersion: 2.2.2
metadata:
name: jhipster-online
version: 2.33.0
description: Stack with the JHipster Online on DevSpaces Red Hat OpenShift
displayName: JHipster Online
icon: https://raw.githubusercontent.com/maximilianoPizarro/ecommerce-oracle/main/jhipster-icon.png
website: https://start.jhipster.tech
tags:
- Java
- JHipster
- Angular
- Spring
language: Java
projectType: springboot
projects:
- name: jhipster-online
git:
remotes:
origin: 'https://github.com/maximilianoPizarro/jhipster-online'
checkoutFrom:
revision: openshift
components:
- name: tools
container:
image: 'quay.io/maximilianopizarro/jhipster-devspace@sha256:c27aefcf6ce158479bafae63758c1f0993c430a6ee15f76cf369fc889e54eae5'
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: debug
targetPort: 4200
- exposure: public
name: frontend
protocol: https
targetPort: 9000
- exposure: public
name: debug-frontend
protocol: https
targetPort: 9001
- exposure: public
name: browser-sync
protocol: https
targetPort: 3001
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: kubectl-add-mysql
exec:
label: 'Kubernetes apply MariaDB Instance (Kubernetes cluster)'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'kubectl apply -f src/main/kubernetes/mysql.yaml'
- id: oc-add-mysql
exec:
label: 'OpenShift apply MariaDB Instance (OpenShift cluster)'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'oc apply -f src/main/kubernetes/mysql.yaml'
- id: yarn-install
exec:
label: 'Package the application'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'yarn install'
group:
kind: build
isDefault: true
- id: start-frontend
exec:
label: 'Start Frontend'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'yarn start'
group:
kind: run
isDefault: true
- id: start-backend
exec:
label: 'Start JHipster Online'
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: 'chmod 777 ./mvnw && ./mvnw'
group:
kind: run
isDefault: false
events:
postStart:
- oc-add-mysql
- yarn-install