-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathpackage-local.devfile.yaml
72 lines (59 loc) · 1.79 KB
/
package-local.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
apiVersion: 1.0.0
metadata:
generateName: package-local-postit-app-
projects:
- source:
type: git
location: 'https://github.com/redhat-developer-demos/quarkus-reactjs-postit-app'
name: postit-app
components:
- alias: quarkus-backend-dev
type: dockerimage
image: quay.io/quarkus/centos-quarkus-maven:19.2.1
memoryLimit: 1Gi
command: ['sleep']
args: ['infinity']
mountSources: true
env:
- name: MAVEN_OPTS
value: '-Dmaven.repo.local=/projects/local/m2repo'
- alias: node-frontend-dev
mountSources: true
image: 'quay.io/eclipse/che-nodejs8-centos:7.2.0'
memoryLimit: 768Mi
type: dockerimage
- alias: git
type: dockerimage
image: sunix/git-devtools
mountSources: true
memoryLimit: 512M
args: ['sleep', 'infinity']
commands:
- name: prepare local quarkus-backend
actions:
- type: exec
command: |-
mkdir -p /projects/local/m2repo;
rm /projects/local/m2repo/* -rf ;
mvn package;
component: quarkus-backend-dev
workdir: /projects/postit-app/quarkus-backend
- name: prepare local node_modules
actions:
- type: exec
command: |-
mkdir -p /projects/local;
rm /projects/local/node_modules.tar.gz -rf;
rm /projects/postit-app/node-frontend/node_modules -rf;
npm install;
tar -zcvf /projects/local/node_modules.tar.gz node_modules;
component: node-frontend-dev
workdir: /projects/postit-app/node-frontend/
- name: zip everything
actions:
- type: exec
command: |-
rm local.zip;
zip -r local.zip *;
component: git
workdir: /projects/local/