-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.devfile.yaml
executable file
·59 lines (59 loc) · 1.9 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.2.0"
metadata:
name: cities-demo
namespace: smichard-devspaces
attributes:
metadata-name-field: generateName
metadata-name-original-value: cities_demo
attributes:
che-theia.eclipse.org/sidecar-policy: mergeImage
controller.devfile.io/devworkspace-config:
name: devworkspace-config
namespace: openshift-operators
controller.devfile.io/storage-type: per-user
dw.metadata.annotations:
che.eclipse.org/devfile-source: |
url:
location: https://github.com/smichard/cities_demo
factory:
params: url=https://github.com/smichard/cities_demo
projects:
- name: cities-demo
git:
remotes:
origin: https://github.com/smichard/cities_demo.git
components:
- name: devspaces-container
container:
image: quay.io/michard/devspaces_base_image:0.1.25
sourceMapping: /projects
env:
- name: CHE_DASHBOARD_URL
value: https://devspaces.apps.ocp.michard.cc
- name: CHE_PLUGIN_REGISTRY_URL
value: https://devspaces.apps.ocp.michard.cc/plugin-registry/v3
- name: CHE_PLUGIN_REGISTRY_INTERNAL_URL
value: http://plugin-registry.openshift-operators.svc:8080/v3
- name: CLUSTER_CONSOLE_URL
value: https://console-openshift-console.apps.ocp.michard.cc
- name: CLUSTER_CONSOLE_TITLE
value: OpenShift console
- name: OPENVSX_REGISTRY_URL
value: 'https://open-vsx.org/'
- name: KUBEDOCK_ENABLED
value: 'true'
commands:
- id: post-start-cmd
exec:
label: 'Post Start Commands'
component: devspaces-container
commandLine: git config --global pull.rebase true
- id: connect-to-minio
exec:
label: 'Connect to MinIO'
component: devspaces-container
commandLine: mc alias set s3 $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
events:
postStart:
- post-start-cmd
- connect-to-minio