forked from AzBuilder/terrakube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.devfile.yaml
79 lines (73 loc) · 1.94 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
schemaVersion: 2.1.0
metadata:
name: terrakube-platform
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-c63ad83
memoryLimit: 6Gi
mountSources: true
endpoints:
- exposure: public
name: terrakube-api
protocol: http
targetPort: 8080
- exposure: public
name: terrakube-registry
protocol: http
targetPort: 8075
- exposure: public
name: terrakube-executor
protocol: http
targetPort: 8090
- exposure: public
name: terrakube-ui
protocol: http
targetPort: 3000
- exposure: public
name: terrakube-dex
protocol: http
targetPort: 5556
volumeMounts:
- name: m2
path: /home/user/.m2
- name: ubuntu
container:
image: ubuntu:jammy
memoryLimit: 256Mi
mountSources: true
command: ['bash']
args: ['/projects/terrakube/scripts/setupDevelopmentEnvironmentChe.sh']
- name: openldap
container:
image: bitnami/openldap:2.6.3
memoryLimit: 256Mi
mountSources: true
env:
- name: "LDAP_ADMIN_USERNAME"
value: "admin"
- name: "LDAP_ADMIN_PASSWORD"
value: "admin"
- name: "LDAP_ROOT"
value: "dc=example,dc=org"
- name: "LDAP_CUSTOM_LDIF_DIR"
value: "/projects/terrakube/scripts/setup/dex/"
- name: dex
container:
image: ghcr.io/dexidp/dex
memoryLimit: 256Mi
mountSources: true
command: ['sh']
args: ['/projects/terrakube/scripts/dependencies/loadDexChe.sh']
- name: m2
volume:
size: 5G
commands:
- id: dex
exec:
component: dex
workingDir: ${PROJECT_SOURCE}
commandLine: "dex serve --web-http-addr 0.0.0.0:5556 /projects/terrakube/scripts/setup/dex/config-ldap.yaml"
group:
kind: build
isDefault: false