Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stable28 gives me 29.0.0-dev #309

Open
MarcelRobitaille opened this issue Feb 23, 2024 · 4 comments
Open

stable28 gives me 29.0.0-dev #309

MarcelRobitaille opened this issue Feb 23, 2024 · 4 comments

Comments

@MarcelRobitaille
Copy link

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
Copy link
Contributor

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
Copy link
Contributor

@MarcelRobitaille
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants