forked from devfile/library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
64 lines (62 loc) · 1.66 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
schemaVersion: 2.1.0
metadata:
name: nodejs
version: 1.0.0
alpha.deployment-manifest: "https://raw.githubusercontent.com/groeges/devfile-registry/master/devfiles/nodejs/deploy_deployment.yaml"
projects:
- name: nodejs-starter
git:
location: "https://github.com/odo-devfiles/nodejs-ex.git"
components:
- container:
name: runtime
image: registry.access.redhat.com/ubi8/nodejs-12:1-36
memoryLimit: 1024Mi
mountSources: true
endpoints:
- name: http-3000
targetPort: 3000
configuration:
protocol: tcp
scheme: http
type: terminal
- dockerfile:
name: dockerfile-build
source:
sourceDir: "src"
location: "https://github.com/ranakan19/golang-ex.git"
dockerfileLocation: "https://raw.githubusercontent.com/wtam2018/test/master/nodejs-dockerfiile"
destination: "docker.io"
commands:
- exec:
id: install
component: runtime
commandLine: npm install
workingDir: ${CHE_PROJECTS_ROOT}/nodejs-starter
group:
kind: build
isDefault: true
- exec:
id: run
component: runtime
commandLine: npm start
workingDir: ${CHE_PROJECTS_ROOT}/nodejs-starter
group:
kind: run
isDefault: true
- exec:
id: debug
component: runtime
commandLine: npm run debug
workingDir: ${CHE_PROJECTS_ROOT}/nodejs-starter
group:
kind: debug
isDefault: true
- exec:
id: test
component: runtime
commandLine: npm test
workingDir: ${CHE_PROJECTS_ROOT}/nodejs-starter
group:
kind: test
isDefault: true