Skip to content

Commit fb6fe54

Browse files
sysradiumwncm
authored andcommitted
Upgrade all PAs to KuberDock 1.5.0
# Conflicts: # dokuwiki.yaml # limesurvey.yaml # magento.yaml # mantis.yaml # mybb.yaml # odoo.yaml # opencart.yaml # phpbb.yaml # sugarcrm.yaml
1 parent c289b04 commit fb6fe54

11 files changed

+18
-125
lines changed

YAML_Specification.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,15 @@ If at least one PublicIP parameter in the whole YAML is "true", then Public IP w
225225
volumeMounts:
226226
- mountPath: /var/lib/mysql
227227
name: wordpress-persistent
228+
kdCopyFromImage: true
228229
++++++++++++++++++++++++
229230

230231
volumeMounts begins a list of container directories which will be mounted to persistent storage or
231232
persistent local storage. It depends on type of volumes above.
232233
mountPath - mount path within the container.
233234
name - name of persistent storage to be used (name parameter from volumes section).
234-
235+
kdCopyFromImage - If set to true contents of the mountPath folder will be
236+
coppied from the docker image the container is created from on PODs creation. False by default.
235237
++++++++++++++++++++++++
236238
name: mysql
237239
image: mysql:5

dokuwiki.yaml

+6-14
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kuberdock:
66
packageID: 0
77
preDescription: |
88
You are installing the application [b]DokuWiki[/b].
9-
[b]DokuWiki[/b] is a simple to use and highly versatile Open Source wiki software that doesn't require a database.
9+
[b]DokuWiki[/b] is a simple to use and highly versatile Open Source wiki software that doesn't require a database.
1010
Choose the amount of resources or use recommended parameters set by default.
1111
First choose package.
1212
When you click "Order now", you will get to order processing page.
@@ -114,19 +114,6 @@ spec:
114114
-
115115
name: dokuwiki
116116
image: kuberdock/dokuwiki:2016-06-26a
117-
lifecycle:
118-
postStart:
119-
exec:
120-
command:
121-
- "sh"
122-
- "-c"
123-
- >
124-
if [ -e /dokuwiki/conf/local.php ]; then
125-
rm -rf /dokuwiki/install.php;
126-
fi;
127-
if [ ! -f /dokuwiki/index.php ]; then
128-
cp -rp /originroot/dokuwiki/. /dokuwiki/;
129-
fi
130117
ports:
131118
- containerPort: 80
132119
isPublic: True
@@ -137,12 +124,17 @@ spec:
137124
volumeMounts:
138125
- mountPath: /dokuwiki
139126
name: dokuwiki-persistent-storage
127+
kdCopyFromImage: true
140128
- mountPath: /dokuwiki/data
141129
name: dokuwiki-data-persistent-storage
130+
kdCopyFromImage: true
142131
- mountPath: /dokuwiki/lib/plugins
143132
name: dokuwiki-plugins-persistent-storage
133+
kdCopyFromImage: true
144134
- mountPath: /dokuwiki/conf
145135
name: dokuwiki-conf-persistent-storage
136+
kdCopyFromImage: true
146137
- mountPath: /dokuwiki/lib/tpl
147138
name: dokuwiki-tpl-persistent-storage
139+
kdCopyFromImage: true
148140

drupal.yaml

+1-11
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,6 @@ spec:
122122
-
123123
name: drupal
124124
image: drupal:8
125-
lifecycle:
126-
postStart:
127-
exec:
128-
command:
129-
- "sh"
130-
- "-c"
131-
- >
132-
chown -R www-data:www-data /var/www/html;
133-
if [ ! -f /var/www/html/index.html ]; then
134-
cp -rp /originroot/var/www/html/. /var/www/html/;
135-
fi
136125
ports:
137126
- containerPort: 80
138127
isPublic: True
@@ -143,5 +132,6 @@ spec:
143132
volumeMounts:
144133
- mountPath: /var/www/html
145134
name: drupal-persistent-storage
135+
kdCopyFromImage: true
146136
workingDir: /var/www/html
147137

limesurvey.yaml

+1-11
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,6 @@ spec:
8484
-
8585
name: limesurvey
8686
image: kuberdock/limesurvey:2.50.1
87-
lifecycle:
88-
postStart:
89-
exec:
90-
command:
91-
- "sh"
92-
- "-c"
93-
- >
94-
chown -R www-data:www-data /app;
95-
if [ ! -f /app/index.php ]; then
96-
cp -rp /originroot/app/. /app/;
97-
fi
9887
ports:
9988
- containerPort: 80
10089
isPublic: True
@@ -107,4 +96,5 @@ spec:
10796
name: mysql-persistent-storage
10897
- mountPath: /app
10998
name: limesurvey-persistent-storage
99+
kdCopyFromImage: true
110100

magento.yaml

+1-11
Original file line numberDiff line numberDiff line change
@@ -125,17 +125,6 @@ spec:
125125
-
126126
name: magento
127127
image: kuberdock/magento:1.9.1.0
128-
lifecycle:
129-
postStart:
130-
exec:
131-
command:
132-
- "sh"
133-
- "-c"
134-
- >
135-
chown -R www-data:www-data /var/www/htdocs;
136-
if [ ! -f /var/www/htdocs/index.php ]; then
137-
cp -rp /originroot/var/www/htdocs/. /var/www/htdocs/;
138-
fi
139128
ports:
140129
- containerPort: 80
141130
isPublic: True
@@ -146,4 +135,5 @@ spec:
146135
volumeMounts:
147136
- mountPath: /var/www/htdocs
148137
name: magento-persistent-storage
138+
kdCopyFromImage: true
149139

mantis.yaml

+1-14
Original file line numberDiff line numberDiff line change
@@ -126,20 +126,6 @@ spec:
126126
-
127127
name: mantis
128128
image: kuberdock/mantisbt:1.3.1
129-
lifecycle:
130-
postStart:
131-
exec:
132-
command:
133-
- "sh"
134-
- "-c"
135-
- >
136-
chown -R www-data:www-data /var/www/html;
137-
if [ -s /var/www/html/config_inc.php ]; then
138-
rm -rf /var/www/html/admin;
139-
fi;
140-
if [ ! -f /var/www/html/index.php ]; then
141-
cp -rp /originroot/var/www/html/. /var/www/html/;
142-
fi
143129
ports:
144130
- containerPort: 80
145131
isPublic: True
@@ -150,5 +136,6 @@ spec:
150136
volumeMounts:
151137
- mountPath: /var/www/html
152138
name: mantis-persistent-storage
139+
kdCopyFromImage: true
153140
workingDir: /var/www/html
154141

mybb.yaml

+1-13
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,6 @@ spec:
124124
-
125125
name: mybb
126126
image: kuberdock/mybb:2015.10
127-
lifecycle:
128-
postStart:
129-
exec:
130-
command:
131-
- "sh"
132-
- "-c"
133-
- >
134-
if [ -s /var/www/mybb/inc/config.php ]; then
135-
rm -rf /var/www/mybb/install;
136-
fi;
137-
if [ ! -f /var/www/mybb/index.php ]; then
138-
cp -rp /originroot/var/www/mybb/. /var/www/mybb/;
139-
fi
140127
ports:
141128
- containerPort: 80
142129
isPublic: True
@@ -146,5 +133,6 @@ spec:
146133
initialDelaySeconds: 5
147134
volumeMounts:
148135
- mountPath: /var/www/mybb
136+
kdCopyFromImage: true
149137
name: mybb-persistent-storage
150138

odoo.yaml

+1-11
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,6 @@ spec:
112112
-
113113
name: odoo
114114
image: kuberdock/odoo:9
115-
lifecycle:
116-
postStart:
117-
exec:
118-
command:
119-
- "sh"
120-
- "-c"
121-
- >
122-
if [ ! -f /var/lib/odoo/openerp-server.conf ]; then
123-
cp /etc/odoo/openerp-server.conf /var/lib/odoo/openerp-server.conf;
124-
chown odoo -R /var/lib/odoo;
125-
fi
126115
env:
127116
- name: DB_PORT_5432_TCP_ADDR
128117
value: 127.0.0.1
@@ -145,5 +134,6 @@ spec:
145134
initialDelaySeconds: 5
146135
volumeMounts:
147136
- mountPath: /var/lib/odoo
137+
kdCopyFromImage: true
148138
name: odoo-persistent-storage
149139

opencart.yaml

+1-14
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,6 @@ spec:
124124
-
125125
name: opencart
126126
image: kuberdock/opencart:2.2.0.0
127-
lifecycle:
128-
postStart:
129-
exec:
130-
command:
131-
- "sh"
132-
- "-c"
133-
- >
134-
chown -R www-data:www-data /var/www/html;
135-
if [ -s /var/www/html/config.php ]; then
136-
rm -rf /var/www/html/install;
137-
fi;
138-
if [ ! -f /var/www/html/index.html ]; then
139-
cp -rp /originroot/var/www/html/. /var/www/html/;
140-
fi
141127
ports:
142128
- containerPort: 80
143129
isPublic: True
@@ -148,5 +134,6 @@ spec:
148134
volumeMounts:
149135
- mountPath: /var/www/html
150136
name: opencart-persistent-storage
137+
kdCopyFromImage: true
151138
workingDir: /var/www/html
152139

phpbb.yaml

+1-14
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,6 @@ spec:
124124
-
125125
name: phpbb
126126
image: kuberdock/phpbb:3.1.9
127-
lifecycle:
128-
postStart:
129-
exec:
130-
command:
131-
- "sh"
132-
- "-c"
133-
- >
134-
chown -R www-data:www-data /var/www/html;
135-
if [ -s /var/www/html/config.php ]; then
136-
rm -rf /var/www/html/install;
137-
fi;
138-
if [ ! -f /var/www/html/index.html ]; then
139-
cp -rp /originroot/var/www/html/. /var/www/html/;
140-
fi
141127
ports:
142128
- containerPort: 80
143129
isPublic: True
@@ -148,5 +134,6 @@ spec:
148134
volumeMounts:
149135
- mountPath: /var/www/html
150136
name: phpbb-persistent-storage
137+
kdCopyFromImage: true
151138
workingDir: /var/www/html
152139

sugarcrm.yaml

+1-11
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,6 @@ spec:
124124
-
125125
name: sugarcrm
126126
image: kuberdock/sugarcrm:6.5
127-
lifecycle:
128-
postStart:
129-
exec:
130-
command:
131-
- "sh"
132-
- "-c"
133-
- >
134-
chown -R www-data:www-data /var/www/html;
135-
if [ ! -f /var/www/html/index.php ]; then
136-
cp -rp /originroot/var/www/html/. /var/www/html/;
137-
fi
138127
env:
139128
- name: DATABASE_NAME
140129
value: sugarcrm
@@ -160,4 +149,5 @@ spec:
160149
volumeMounts:
161150
- mountPath: /var/www/html
162151
name: sugarcrm-persistent-storage
152+
kdCopyFromImage: true
163153

0 commit comments

Comments
 (0)