-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat: Allow custom script execution on installation #1683
feat: Allow custom script execution on installation #1683
Conversation
Could you rebase and only edit the entrypoint template in root and not the ones in the |
Hi, I found another way to achieve what I wanted without any changes using It's hard to guess how this environment variable can do since there is no example in README.md . This is how I do it : docker-compose.yml :
nc-entrypoint-override :
nc-entrypoint-override-postinstall :
So I'm not sure if my previous changes are still needed. |
Fair enough! Thanks :) |
@skjnldsv Any word on the official Nextcloud best practice for doing this? From several GitHub issues and pull requests for installing/enabling apps from a derived Dockerimage, and following the Nextcloud example docker-compose setup for alpine with nginx-proxy and LE/ACME Companion, I went ahead and followed the custom entrypoint script found here from FUSS: https://gitlab.fuss.bz.it/fuss-team/fuss-nc/-/blob/476791f41dad509c677fc25e266a072074349c0e/nextcloud-fuss/configure-fuss.sh When I run docker-compose up, the Nextcloud container just errors out on all calls to app:install telling me that Nextcloud is not installed. Am I missing something here? Do I still have to manually create a user from the Web UI, or can I do all this via Dockerfile / entrypoint.sh and docker-compose? We really need a fully automated CLI/API way of provisioning, theming, and setting up new Nextcloud instances for new users of our service, with no work required by the end-user. |
Hi :)
Rebased #1260
First contribution ever using git, not sure if everything is ok so don't hesitate to tell me how to improve ;)