6cc6bba52f383578030eadbd9e1416fe25dd6a2b
Some checks failed
/ continuous-deploy (push) Failing after 15s
cloud.limbosolutions.com
Welcome to public repository of https://cloud.limbosolutions.com
Using NextCloud
command
su -s /bin/bash www-data -c "php occ upgrade;"
maintenance mode
su -s /bin/bash www-data -c "php -d memory_limit=-1 /var/www/html/occ maintenance:mode --on;"
su -s /bin/bash www-data -c "php -d memory_limit=-1 /var/www/html/occ maintenance:mode --off"
scan files
su -s /bin/bash www-data -c "php -d memory_limit=-1 /var/www/html/occ files:scan --all"
preview generator
https://apps.nextcloud.com/apps/previewgenerator
su -s /bin/bash www-data -c "./occ preview:generate-all -vvv"
su -s /bin/bash www-data -c "./occ preview:generate-all --path=marcio.fernandes/files/Photos -vvv"
# cron job
php /var/www/nextcloud/occ preview:pre-generate
repair tree
su -s /bin/bash www-data -c "php occ files:repair-tree"
delete file locks
# execute on mariadb
DELETE FROM oc_file_locks WHERE 1;
Setup and Deploy
App
Security context:
This script is intended to be executed only by low‑privilege deployment identities, such as the continuous‑deploy ServiceAccount or an application maintainer with equivalent permissions.
./ops-scripts/apply-app.sh
Responsibilities:
- Database deployment
- Persistent Volume Claims (storage.limbosolutions.com)
- Nextcloud Helm chart deployment
- Backup job deployment
Requirements:
Infra
Security context: This script requires elevated cluster‑level permissions and must be executed only by platform maintainers, not by the continuous‑deploy identity.
./ops-scripts/apply-infra.sh
Responsibilities:
- Ingress controller deployment
- Persistent storage provisioning (storage.limbosolutions.com)
- services accounts:
- Continuous deploy - Deployment RBAC (ServiceAccount + Role + RoleBinding)
mariadb database
Connect to maria db:
kubectl exec -it nextcloud-mariadb-0 -- mariadb -u nextcloud -h nextcloud-mariadb.cloud-limbosolutions-com.svc.cluster.local -p
Restore database:
kubectl run mysql-client -i --rm \
--image=mysql:latest --restart=Never -- \
mysql -h nextcloud-mariadb.cloud-limbosolutions-com.svc.cluster.local \
-u ???? -p???? nextcloud < ./tmp/host-nextcloud-full-backup.sql
Description
Languages
Shell
100%