juliushaertl / nextcloud-docker-dev

Nextcloud development environment using docker-compose
GNU Affero General Public License v3.0
137 stars 72 forks source link

stable28 gives me 29.0.0-dev #309

Open MarcelRobitaille opened 7 months ago

MarcelRobitaille commented 7 months ago

When I run docker-compose up stable28, I actually get 29.0.0 dev in the settings.

How are these stable containers supposed to work? It looks like they all have the same image as the nextcloud container (ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-81}:latest). Am I missing something?

autoantwort commented 7 months ago

I guess if you want to run an old version use https://github.com/juliushaertl/nextcloud-docker-dev?tab=readme-ov-file#standalone-containers (at the end of section)

autoantwort commented 7 months ago

Or https://juliushaertl.github.io/nextcloud-docker-dev/basics/stable-versions/

MarcelRobitaille commented 7 months ago

Yes, that is what I'm talking about. I followed this guide you linked https://juliushaertl.github.io/nextcloud-docker-dev/basics/stable-versions/

juliushaertl commented 7 months ago

Double check that the source code checkout is at the correct state, we just mount it from the host system to the container:

$ docker ps | grep stable28
acff523bbe0e   ghcr.io/juliushaertl/nextcloud-dev-php81:latest     "/usr/local/bin/boot…"   27 seconds ago   Up 27 seconds   80/tcp                                     nextcloud-stable28-1

Gives you the container id, e.g. acff523bbe0e, then get all mounts to know which path is used for the stable28 source

$ docker inspect -f '{{ .Mounts }}' acff523bbe0e
[{bind  /Users/julius/repos/nextcloud/stable28 /var/www/html  rw true rprivate} {volume 5f719dc11b1019a79c4f8e07b4abbf73391343c4747f34f067d11b0271694e0a /var/lib/docker/volumes/5f719dc11b1019a79c4f8e07b4abbf73391343c4747f34f067d11b0271694e0a/_data /var/www/html/config local z true } {bind  /Users/julius/repos/nextcloud/nc-dev/data/additional.config.php /var/www/html/config/additional.config.php  ro false rprivate} {bind  /Users/julius/repos/nextcloud/nc-dev/data/skeleton /skeleton  rw true rprivate} {bind  /Users/julius/repos/nextcloud/nc-dev/data/shared /shared  rw true rprivate} {volume e163e0c053a404f97802b32dff2d74a2214c9526b4a8dda602a2f8193e2c3ec1 /var/lib/docker/volumes/e163e0c053a404f97802b32dff2d74a2214c9526b4a8dda602a2f8193e2c3ec1/_data /var/www/html/data local z true } {volume 3f1343eec8997fb2ee41ae36ec60226168647ecb0e0f542b30b5ef14b9396a53 /var/lib/docker/volumes/3f1343eec8997fb2ee41ae36ec60226168647ecb0e0f542b30b5ef14b9396a53/_data /var/www/html/apps-writable local z true } {bind  /Users/julius/repos/nextcloud/stable28/apps-extra /var/www/html/apps-extra  rw true rprivate} {bind  /Users/julius/repos/nextcloud/server/apps-shared /var/www/html/apps-shared  rw true rprivate}]

First entry tells you that /Users/julius/repos/nextcloud/stable28 is mounted to /var/www/html

Now inspect that path to make sure it has a proper git checkout for the stable28 branch

git rev-parse --abbrev-ref HEAD
git log --oneline
cat version.php