forked from redhat-cop/anarchy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevfile.yaml
45 lines (45 loc) · 1.07 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
schemaVersion: 2.0.0
metadata:
name: anarchy
version: 1.0.0
components:
- name: s2i-builder
container:
env:
- name: ODO_S2I_SCRIPTS_URL
value: /usr/libexec/s2i
- name: ODO_S2I_SCRIPTS_PROTOCOL
value: image://
- name: ODO_S2I_SRC_BIN_PATH
value: /tmp
- name: ODO_S2I_DEPLOYMENT_DIR
value: ""
- name: ODO_S2I_WORKING_DIR
value: /opt/app-root/src
- name: ODO_S2I_BUILDER_IMG
value: ubi8/python-38
- name: ODO_SRC_BACKUP_DIR
value: /opt/app-root/src-backup
- name: ODO_S2I_CONVERTED_DEVFILE
value: "true"
# Anarchy vars
- name: CLEANUP_INTERVAL
value: "10"
image: quay.io/redhat-cop/python-kopf-s2i:v1.34.0
mountSources: true
sourceMapping: /tmp/projects
commands:
- id: s2i-assemble
exec:
commandLine: /opt/odo/bin/s2i-setup && /opt/odo/bin/assemble-and-restart
component: s2i-builder
group:
isDefault: true
kind: build
- id: s2i-run
exec:
commandLine: /opt/odo/bin/run
component: s2i-builder
group:
isDefault: true
kind: run