This repository was archived by the owner on Oct 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmediawiki-deployment.yml
executable file
·123 lines (123 loc) · 4.28 KB
/
mediawiki-deployment.yml
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
apiVersion: v1
kind: Deployment
metadata:
name: mwm-deployment
labels:
app: mwm
spec:
replicas: 1
selector:
matchLabels:
app: mwm
template:
metadata:
labels:
app: mwm
spec:
# CreateCampEMWCon2021: introduce volume type switch: owner, group, permissions
volumes:
# Restic
- name: snapshots
hostPath:
path: /home/dserver/snapshots
- name: currentresources
hostPath:
path: /home/dserver/currentresources
- name: restic_password
hostPath:
path: /home/dserver/mediawiki-cli/restic_password
- name: mwmsqlite
hostPath:
path: /home/dserver/mwcliconfigdb.sqlite
# MediaWiki
- name: system_root_w_extensions
hostPath:
path: /home/dserver/system_root/w/extensions
- name: system_root_w_skins
hostPath:
path: /home/dserver/system_root/w/skins
- name: system_root_w_vendor
hostPath:
path: /home/dserver/system_root/w/vendor
- name: system_root_w_composerLocalJSON
hostPath:
path: /home/dserver/system_root/w/composer.local.json
- name: system_root_w_composerLocalLock
hostPath:
path: /home/dserver/system_root/w/composer.local.lock
- name: system_root_w_images
hostPath:
path: /home/dserver/system_root/w/images
# Apache
- name: apache_sites_available
hostPath:
path: /home/dserver/mediawiki-installer/conf/apache/sites-available
# MWM
- name: mwmCLI
hostPath:
path: /home/dserver/mediawiki-cli
- name: mwmLogs
hostPath:
path: /home/dserver/system_root/logs
# MariaDB
- name: mariadb_data
hostPath:
path: /home/dserver/mariadb_data
containers:
# CreateCampEMWCon2021: optimize Dockerfile: executing user and permissions: https://github.com/dataspects/dataspectsSystemBuilder/tree/master/docker-images/mediawiki
- image: docker.io/dataspects/mediawiki:1.35.0-2104141705
name: mediawiki
volumeMounts:
# MediaWiki
# - mountPath: /var/www/html/w/extensions
# name: system_root_w_extensions
# - mountPath: /var/www/html/w/skins
# name: system_root_w_skins
# - mountPath: /var/www/html/w/vendor
# name: system_root_w_vendor
- mountPath: /var/www/html/w/composer.local.json
name: system_root_w_composerLocalJSON
- mountPath: /var/www/html/w/composer.local.lock
name: system_root_w_composerLocalLock
- mountPath: /var/www/html/w/images
name: system_root_w_images
# MWM
- mountPath: /var/www/html/logs
name: mwmLogs
- mountPath: /var/www/html/mwmconfigdb.sqlite
name: mwmsqlite
- mountPath: /var/www/html/cli
name: mwmCLI
# Apache
- mountPath: /etc/apache2/sites-available
name: apache_sites_available
# Restic
- mountPath: /var/www/html/restic_password
name: restic_password
- mountPath: /var/www/html/snapshots
name: snapshots
- mountPath: /var/www/html/currentresources
name: currentresources
env:
- name: MYSQL_HOST
value: mwm-deployment-pod-0-mariadb
- name: DATABASE_NAME
value: mediawiki
- name: MYSQL_USER
value: mediawiki
- name: WG_DB_PASSWORD
value: wgdbpassword
ports:
# CreateCampEMWCon2021: optimize Apache Virtual Host config: mwmITLocal, mwmITIntra, mwmITCloud: https://github.com/dataspects/dataspectsSystemBuilder/tree/master/docker-images/mediawiki
- containerPort: 443
hostPort: 4443
- image: docker.io/library/mariadb:10.5.5
name: mariadb
env:
- name: MYSQL_ROOT_PASSWORD
value: 123456
volumeMounts:
- mountPath: /var/lib/mysql
name: mariadb_data
dnsConfig: {}
status: {}