Compare commits

...

5 Commits

Author SHA1 Message Date
Finn 8d214d1a91 added own docker-run.sh 2021-08-21 15:16:43 +02:00
Ben 1ad92412f3
podman: Put nextcloud into debug mode 2021-08-21 14:59:18 +02:00
Ben 0d90d15594
Update .gitignore for composer 2021-08-21 14:41:59 +02:00
Ben fb5cfff56e
Update podman configuration runners 2021-08-21 14:41:50 +02:00
Ben d8ec284f53
Add composer.lock 2021-08-21 14:40:28 +02:00
5 changed files with 1595 additions and 4 deletions

4
.gitignore vendored
View File

@ -1,2 +1,6 @@
/.idea
/build
### Composer ###
composer.phar
/vendor

1561
composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

15
docker-run.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
DIR="${0%/*}"
docker rm -f nextcloud
docker run -d --name=nextcloud -p 8080:80 -v "${PWD}:/var/www/html/custom_apps/upschooling" docker.io/nextcloud
docker exec nextcloud chown -R 33 /var/www/html/custom_apps
docker exec nextcloud chmod -R ug+rw /var/www/html/custom_apps
docker exec --user 33 nextcloud bash -c 'cd /var/www/html/custom_apps/upschooling && make'
docker exec --user 33 nextcloud php occ maintenance:install --database "sqlite" --admin-user "admin" --admin-pass "admin"
docker exec --user 33 nextcloud php occ config:system:set --value=true --type=boolean debug

11
podman-reown.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
DIR="${0%/*}"
podman unshare -- chown -R 33 "$DIR"
podman unshare -- chgrp -R 0 "$DIR"
podman unshare -- chmod -R ug+rw "$DIR"

View File

@ -6,7 +6,7 @@ IFS=$'\n\t'
DIR="${0%/*}"
podman run -d --name=nextcloud --replace=true -p 8080:80 -v "$DIR:/var/www/html/custom_apps/upschooling" docker.io/nextcloud
podman exec nextcloud chown 33 /var/www/html/custom_apps
podman unshare chown -R 33 -R "$DIR"
podman unshare chmod -R ug+rw "$DIR"
podman exec nextcloud chown -R 33 /var/www/html/custom_apps
"$DIR/podman-reown.sh"
podman exec --user 33 nextcloud bash -c 'cd /var/www/html/custom_apps/upschooling && make'
podman exec --user 33 nextcloud php occ config:system:set --value=true --type=boolean debug