This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
devfile.yaml
75 lines (75 loc) · 2.04 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
metadata:
name: datasync-starter
projects:
- name: datasync-starter
source:
location: 'https://github.com/aerogear/datasync-starter.git'
type: git
branch: walkthrough
components:
- id: che-incubator/typescript/latest
memoryLimit: 512Mi
type: chePlugin
- mountSources: true
endpoints:
- name: server
port: 4000
- name: devclient
port: 3333
memoryLimit: 1500Mi
type: dockerimage
alias: nodejs
image: 'registry.redhat.io/codeready-workspaces/stacks-node-rhel8:2.0'
env:
- value: 220fd770-c028-480d-8f95-f84353c7d55a
name: SECRET
- endpoints:
- name: mongodb-34-rhel7
port: 27017
attributes:
discoverable: 'true'
public: 'false'
memoryLimit: 512Mi
type: dockerimage
volumes:
- name: mongo-storage
containerPath: /var/lib/mongodb/data
alias: mongo
image: registry.redhat.io/rhscl/mongodb-34-rhel7
env:
- value: user
name: MONGODB_USER
- value: password
name: MONGODB_PASSWORD
- value: showcase
name: MONGODB_DATABASE
- value: password
name: MONGODB_ADMIN_PASSWORD
apiVersion: 1.0.0
commands:
- name: install dependencies
actions:
- workdir: '${CHE_PROJECTS_ROOT}/datasync-starter'
type: exec
command: git checkout walkthrough && npm install -g yarn && yarn install
component: nodejs
- name: generate source code
actions:
- workdir: '${CHE_PROJECTS_ROOT}/datasync-starter'
type: exec
command: 'yarn graphback generate'
component: nodejs
- name: prepare client
actions:
- workdir: '${CHE_PROJECTS_ROOT}/datasync-starter'
type: exec
command: 'yarn prepare:client'
component: nodejs
- name: start server
actions:
- workdir: '${CHE_PROJECTS_ROOT}/datasync-starter'
type: exec
command: >-
MONGO_USER=user MONGO_PASSWORD=password MONGO_HOST=mongodb-34-rhel7
yarn start:server
component: nodejs