-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevspace.yaml
159 lines (153 loc) · 4.85 KB
/
devspace.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
version: v1beta11
vars:
- name: APP_IMAGE
value: maven:3.6.0-jdk-11-slim
deployments:
- name: wikibase-config
kubectl:
manifests:
- devspace/wikibase.yaml
- name: wikibase-bundle
helm:
componentChart: true
values:
containers:
- name: wikibase-bundle
image: ${WIKIBASE_BUNDLE_IMAGE_NAME}
env:
- name: DB_SERVER
value: maria-db:3306
- name: MW_ADMIN_NAME
value: ${MW_ADMIN_NAME}
- name: MW_ADMIN_PASS
value: ${MW_ADMIN_PASS}
- name: MW_ADMIN_EMAIL
value: ${MW_ADMIN_EMAIL}
- name: MW_WG_SECRET_KEY
value: ${MW_SECRET_KEY}
- name: CAS_CLIENT_ID
value: ${CAS_CLIENT_ID}
- name: CAS_CLIENT_SECRET
value: ${CAS_CLIENT_SECRET}
- name: MW_WG_JOB_RUN_RATE
value: "0"
- name: DB_USER
value: ${DB_USER}
- name: DB_PASS
value: ${DB_PASS}
- name: DB_NAME
value: ${DB_NAME}
- name: WIKIBASE_HOST
value: wikibase.local.europa.eu
- name: QS_PUBLIC_SCHEME_HOST_AND_PORT
value: http://${QUICKSTATEMENTS_HOST}:${QUICKSTATEMENTS_PORT}
- name: EXTERNAL_STORAGE_SERVICE
value: maria-db:3306
- name: EXTERNAL_STORAGE_PASSWORD
value: ${DB_PASS}
service:
ports:
- port: 80
# - name: wikibase-jobrunner
# helm:
# componentChart: true
# values:
# containers:
# - name: wikibase-jobrunner
# image: ${WIKIBASE_BUNDLE_IMAGE_NAME}
# command:
# - "/bin/sh"
# args:
# - "-c"
# - |
# sleep 9999999
# env:
# - name: DB_SERVER
# value: maria-db:3306
# - name: MW_ADMIN_NAME
# value: ${MW_ADMIN_NAME}
# - name: MW_ADMIN_PASS
# value: ${MW_ADMIN_PASS}
# - name: MW_ADMIN_EMAIL
# value: ${MW_ADMIN_EMAIL}
# - name: MW_WG_SECRET_KEY
# value: ${MW_SECRET_KEY}
# - name: CAS_CLIENT_ID
# value: ${CAS_CLIENT_ID}
# - name: CAS_CLIENT_SECRET
# value: ${CAS_CLIENT_SECRET}
# - name: MW_WG_JOB_RUN_RATE
# value: "0"
# - name: DB_USER
# value: ${DB_USER}
# - name: DB_PASS
# value: ${DB_PASS}
# - name: DB_NAME
# value: ${DB_NAME}
# - name: WIKIBASE_HOST
# value: wikibase.local.europa.eu
# - name: QS_PUBLIC_SCHEME_HOST_AND_PORT
# value: http://${QUICKSTATEMENTS_HOST}:${QUICKSTATEMENTS_PORT}
# - name: MAX_JOBS
# value: ${MAX_JOBS}
- name: maria-db
helm:
componentChart: true
values:
containers:
- name: maria-db
image: ${MYSQL_IMAGE_NAME}
env:
- name: MYSQL_DATABASE
value: ${DB_NAME}
- name: MYSQL_USER
value: ${DB_USER}
- name: MYSQL_PASSWORD
value: ${DB_PASS}
- name: MYSQL_RANDOM_ROOT_PASSWORD
value: 'yes'
service:
ports:
- port: 3306
dev:
sync:
- imageSelector: ${WIKIBASE_BUNDLE_IMAGE_NAME}
containerPath: /app
excludePaths:
- .git/
- .github/
- .idea/
- .devspace/
- devspace/
- README.md
- target
uploadExcludePaths:
- Dockerfile
- devspace.yaml
- deploy/
- node_modules/
- dist/
- target
hooks:
- command: |
ln -sf /app/LocalSettings.php /var/www/html/LocalSettings.d/LocalSettings.override.php
rm -Rf /var/www/html/extensions/ParserFunctions
rm -Rf /var/www/html/extensions/SyntaxHighlight_GeSHi
rm -Rf /var/www/html/extensions/TemplateData
ln -sf /app/extensions/* /var/www/html/extensions
ln -sf /app/images/* /var/www/html/images
container:
imageSelector: ${WIKIBASE_BUNDLE_IMAGE_NAME}
events: ["after:initialSync:*"]
# - command: |
# chmod +x /app/jobrunner-entrypoint.sh
# /app/jobrunner-entrypoint.sh
# container:
# labelSelector:
# app.kubernetes.io/component: wikibase-jobrunner
# events: ["after:initialSync:*"]
commands:
- name: start-app
description: Run the application on local
command: devspace enter -c maven -- mvn spring-boot:run -Dspring-boot.run.arguments="--spring.config.location=src/main/resources/config/application-k8s-prod.properties"
appendArgs: true