Add pg4wp plugin and update wordpress.yaml

This commit is contained in:
gitea_admin committed 2026-10-02 22:47:41 +03:30
1 parent 0a51ac0a31
commit a4d8c0f418
23 files changed
+4304 -6

No files matched your search

+7 -6
View File
@@ -15,15 +15,16 @@ spec:
spec:
initContainers:
- name: init-pg4wp
image: hub.hamdocker.ir/library/busybox:latest
image: hub.hamdocker.ir/library/alpine:latest
command:
- sh
- -c
- |
wget -O /tmp/pg4wp.zip https://github.com/kevinoid/postgresql-for-wordpress/archive/refs/heads/master.zip
unzip /tmp/pg4wp.zip -d /var/www/html/wp-content/plugins/
mv /var/www/html/wp-content/plugins/postgresql-for-wordpress-master /var/www/html/wp-content/plugins/pg4wp
cp /var/www/html/wp-content/plugins/pg4wp/db.php /var/www/html/wp-content/db.php
apk add --no-cache git
git clone http://gitea-http.gitea.svc.cluster.local:3000/gitea_admin/apps.git /tmp/repo
mkdir -p /var/www/html/wp-content/plugins/pg4wp
cp -r /tmp/repo/pg4wp/* /var/www/html/wp-content/plugins/pg4wp/
cp /tmp/repo/pg4wp/db.php /var/www/html/wp-content/db.php
volumeMounts:
- name: wordpress-data
mountPath: /var/www/html
@@ -83,4 +84,4 @@ spec:
service:
name: wordpress
port:
number: 80
number: 80