-
Notifications
You must be signed in to change notification settings - Fork 704
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
Think about a solution for adding external dependencies into the Nextcloud container #1162
Comments
I see there currently four option for this, which could work (but no option of them is perfect)
RUN set -ex; \
apk add --no-cache su-exec; \
chmod u+s /sbin/su-exec |
Thanks for the input! Agree, no of them is perfrect unfortunately... |
I think it should work, but how do you want to check that the container first starts, when the apks are installed? (Because the entrypoint doesn't know if there will be deps installed or not) |
Simple: we create a file that the install_dependencies script checks for and crwates after running the first time. If the file is there we exit directly |
And how do you want to handle the first point? (That the entrypoint first continues if the packages are installed?) |
The entrypoint then checks for this as well... |
I will think about the exact implementation details later but good to hear that you think it would work! |
So again:
I know it is still WIP, but I don't understand how at least the first question can be resolved with the current logic of this implementation? Or did I misunderstand the logic? |
I guess we need to create a file in a persistant storage somewhere after running thr scripr successfully one time. If that is present we trigger the logic. If not we dont.
We need two files for that: one that is created while we install the dependencies and removed adter it is succeasful. The other one gets created when it was successful. Then entrypoint checks if the successful file is there and waits for that max 5min but waits indefinitely when the install file is present.
Then waiting max 5min for the succeed file should let it continue as the install file is not present... |
But would it not be better that the |
This would be easier from an implementation side. However I'd like to leave the logic completely out of the mastercontainer because you then do not need to recreate the mastercontainer all the time that you want to change additional dependencies. Also this makes it easier to maintain if the logic for all of this is only in one container. |
This is now released with v3.0.0 Beta. Testing and feedback is welcome! See https://github.com/nextcloud/all-in-one#how-to-switch-the-channel |
E.g. for #751 and #1159 and #1214 and #475 and #1288
The text was updated successfully, but these errors were encountered: