generated from RedHatQuickCourses/course-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
59 lines (59 loc) · 1.4 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
schemaVersion: 2.1.0
metadata:
name: REPLACEREPONAME-dev
displayName: RHODS Quick Course
description: RHODS Quick Course published using Antora
icon: https://nodejs.org/static/images/logos/nodejs-new-pantone-black.svg
tags:
- Node.js
- Antora
- ubi8
projectType: Node.js
language: JavaScript
version: 2.1.1
starterProjects:
- name: REPLACEREPONAME-dev
git:
remotes:
origin: 'https://github.com/RedHatTraining/REPLACEREPONAME.git'
components:
- name: runtime
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
args: ['tail', '-f', '/dev/null']
memoryLimit: 1024Mi
mountSources: true
env:
- name: DEBUG_PORT
value: '5858'
endpoints:
- name: http-node
targetPort: 8080
- exposure: none
name: debug
targetPort: 5858
commands:
- id: 0-install
exec:
component: runtime
commandLine: npm install
workingDir: ${PROJECT_SOURCE}
group:
kind: build
isDefault: true
- id: 1-watch
exec:
component: runtime
commandLine: npm run watch:adoc
workingDir: ${PROJECT_SOURCE}
group:
kind: run
isDefault: true
- id: 2-serve
exec:
component: runtime
commandLine: npm run serve
workingDir: ${PROJECT_SOURCE}
group:
kind: run
isDefault: true