-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
There should be a different entrypoint.sh script for each setup (apache and fpm) #2091
Comments
Are you setting https://github.com/nextcloud/docker#adding-features (Though you may have a point about |
Reading yet another time the entrypoint script, you are correct that I might have stumbled upon the only issue in that script :-) Temporarily I implemented my idea but it feels wrong. |
Feel up for creating a PR adding a I think it can be modeled somewhat after (slightly different logic to exclude fpm though I guess): docker/27/apache/entrypoint.sh Line 85 in 37ee8cf
|
Funnily enough, my wrong idea does not work as I'll look into the PR for this. |
I tried something: not sure if it is PR ready yet (callmemagnus@b9adcad). I'm not clear about how to make sure nothing is broken by this. Can you help me on that? My solution is to provide a new variable NEXTCLOUD_DOCKER_MODE (either apache or php-fpm) and remove NEXTCLOUD_UPDATE when extending. I wonder if that information could be "guessed" as we are extending either one or the other. If there is a way to know, I could rely on that to discriminate one from the other and we could fallback to the existing NEXTCLOUD_UPDATE=1. |
@joshtrichards, did you get some time to look at my proposition ? |
Hello, In order to customize the image, wouldn't it be simpler to have a command in entrypoint.sh that checks for the presence of a script file? Example custom.sh and, if present, execute it? That way, you don't break what's currently in place. ( I'm thinking of existing installations ) Edit : Oh ! Sorry, that already seems to be the case! |
Hello, I'm extending the image to change the CMD used to start. So, yes, I could run the command to disable it by myself but that would bring maintenance annoyance to make sure it has not changed. The best solution would be my previous command, reason I'm asking for assistance. |
I've been using the nextcloud docker images for a while now without any issue until recently. Not that the issue was introduced by a change here but because of my usage of the image.
I want to extend the image in order to add functionnality like the live update script for the fulltextsearch application.
To do so, I used the nextcloud:apache as base and added scripts and supervisor and ended the Dockerfile with a new e.g.
It was "working" but broke some parts of Nextcloud because the
entrypoint.sh
script ran partially. The reason is because that script has strong expectations on the CMD of the image.E.g. this expects the CMD to contain
apache
:As I understand, this was probably made to simplify the management of the 3 different images that are handled by this repo but it makes extending the images more difficult.
Writing this ticket, I came up with the idea that I could probably wrap my supervisor command in a script named
apache-whatever
but that would not a "great" experience.What do you think ?
The text was updated successfully, but these errors were encountered: