forked from eclipse-che/che-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
43 lines (43 loc) · 1.02 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
#
# Copyright (c) 2022 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
schemaVersion: 2.1.0
metadata:
name: che-docs
attributes:
controller.devfile.io/storage-type: ephemeral
components:
- name: tools
container:
args:
- tail
- "-f"
- "/dev/null"
endpoints:
- exposure: public
name: livereload
protocol: http
targetPort: 35729
- attributes:
path: /
exposure: public
name: preview-server
protocol: http
targetPort: 4000
image: "quay.io/eclipse/che-docs:next"
memoryLimit: 2Gi
memoryRequest: 256Mi
commands:
- exec:
commandLine: sh tools/preview.sh
component: tools
group:
isDefault: true
kind: build
workingDir: "${PROJECT_SOURCE}"
id: start-preview-server