Closed Sullson closed 2 years ago
Ok I actually found similar question to mine. I will try building the images myself using NEXTCLOUD_VERSION argument and going step by step. As an example:
docker build -t wonderfall/nextcloud:19 -f Dockerfile.20 --build-arg NEXTCLOUD_VERSION=19.0.10 .
So the earliest version I was upgrading from was 12 beta 3 so quite old... nevertheless I was able to create all necessary images - from 13th to 22nd (too tired to go with 23 for now, also did not yet migrate to official image due to some issues).
I recomend modifying the Dockerfile in a way so that:
FROM
argument has no definition of alpine version (images of php <8.0 are not tagged in that way - line 14th from php:${PHP_VERSION}-fpm-alpine${ALPINE_VERSION}
to php:${PHP_VERSION}-fpm-alpine
Then I just followed theese steps:
ARG
, and not FROM
docker build -t myimage/nextcloud:13 -f Dockerfile --build-arg PHP_VERSION=7.1 --build-arg NEXTCLOUD_VERSION=13.0.12 --build-arg ALPINE_VERSION=latest .
docker build -t myimage/nextcloud:14 -f Dockerfile --build-arg PHP_VERSION=7.1 --build-arg NEXTCLOUD_VERSION=14.0.14 --build-arg ALPINE_VERSION=latest .
docker build -t myimage/nextcloud:15 -f Dockerfile --build-arg PHP_VERSION=7.1 --build-arg NEXTCLOUD_VERSION=15.0.12 --build-arg ALPINE_VERSION=latest .
docker build -t myimage/nextcloud:16 -f Dockerfile --build-arg PHP_VERSION=7.1 --build-arg NEXTCLOUD_VERSION=16.0.11 --build-arg ALPINE_VERSION=latest .
docker build -t myimage/nextcloud:17 -f Dockerfile --build-arg PHP_VERSION=7.1 --build-arg NEXTCLOUD_VERSION=17.0.10 --build-arg ALPINE_VERSION=latest .
docker build -t myimage/nextcloud:18 -f Dockerfile --build-arg PHP_VERSION=7.4 --build-arg NEXTCLOUD_VERSION=18.0.14 --build-arg ALPINE_VERSION=latest .
docker build -t myimage/nextcloud:19 -f Dockerfile --build-arg PHP_VERSION=7.4 --build-arg NEXTCLOUD_VERSION=19.0.13 --build-arg ALPINE_VERSION=latest .
docker build -t myimage/nextcloud:20 -f Dockerfile --build-arg PHP_VERSION=7.4 --build-arg NEXTCLOUD_VERSION=20.0.14 --build-arg ALPINE_VERSION=latest .
docker build -t myimage/nextcloud:21 -f Dockerfile --build-arg NEXTCLOUD_VERSION=22.2.5 --build-arg ALPINE_VERSION=latest .
docker build -t myimage/nextcloud:22 -f Dockerfile --build-arg NEXTCLOUD_VERSION=22.2.5 --build-arg ALPINE_VERSION=latest .
Hey team,
I am working out a plan to migrate to new versions from wonderfall nextcloud of versions 12 and 14 to newest ones - the biggest issue lies in upgrading the database properly.
At first I was thinking about doing an upgrade using major releases, but I cannot locate images of wonderfall/nextcloud lower than 21st. Is there an archive containing those somewhere - meaning from 12th all the way to 21st?
Otherwise I found install scripts of local installations and was thinking of installing version 12, attaching existing database I have in docker container, upgrading it and reusing with new deployment and newest version - lots of work though, could use those depricated images.
Kind regards, Michal