-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
I might be missing something basic, but I can no longer run the nextcloud 9 or 10 docker images (v11 works fine)
I get the following output from my build script (pasted in below). Instead of "php occ upgrade" actually running (in this example it should tell me that Nextcloud is not installed) it says:
This version of Nextcloud is not compatible with PHP 7.1.<br/>You are currently running 7.1.2.
I don't think v9 or v10 support PHP 7.1 ... ? I expect this was introduced as of #34. Sadly I need v9 and v10 in order to perform a migration from OC v8.
build.sh :
#!/bin/sh
if [ "$1" == "" ]; then
echo Usage: $0 version
echo e.g. $0 10.0
exit
fi
NEXTCLOUDVER=$1
if [ -f docker-entrypoint.sh ]; then rm docker-entrypoint.sh; fi
if [ -f Dockerfile ]; then rm Dockerfile; fi
wget https://github.com/nextcloud/docker/raw/master/${NEXTCLOUDVER}/apache/docker-entrypoint.sh https://github.com/nextcloud/docker/raw/master/${NEXTCLOUDVER}/apache/Dockerfile
chmod +x docker-entrypoint.sh
# Stop any running nextcloud instances (any)
docker ps | grep nextcloud-test- | tr -s ' ' | cut -f 2 -d ' ' | xargs -n 1 docker stop
# Remove the old instance before we rebuild it
docker rm nextcloud-test-${NEXTCLOUDVER}
docker build -t nextcloud-test-${NEXTCLOUDVER} . && \
docker run --name nextcloud-test-${NEXTCLOUDVER} \
-d \
-p 127.0.0.1:8081:80 \
nextcloud-test-${NEXTCLOUDVER}
docker exec -it nextcloud-test-${NEXTCLOUDVER} bash -c "apt-get update && apt-get install -y sudo vim"
# This will fail:
docker exec -it nextcloud-test-${NEXTCLOUDVER} bash -c "sudo -u www-data php occ upgrade"
Metadata
Metadata
Assignees
Labels
No labels