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

Nextcloud update/start order #1608

Closed
pabloeisenhut opened this issue Oct 6, 2023 · 3 comments
Closed

Nextcloud update/start order #1608

pabloeisenhut opened this issue Oct 6, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@pabloeisenhut
Copy link

When updating all apps or updating TrueNAS are started without a specific order.

Example:
The following apps are linked together: Nextcloud, Redis, Collabora

In this example it is important to start the Redis and Collabora app first and after both are started then start the Nextcloud app. Otherwise it can lead to problems with the Nextcloud and cause various errors.

Possible solution:
A field in each container which works like the Docker Compose function depends_on.

@stavros-k stavros-k added the enhancement New feature or request label Oct 6, 2023
@stavros-k
Copy link
Contributor

There is no such thing as depends_on in kubernetes, however there are initContainers, but those need custom scripts/commands for each scenario, but considering the vast amount of options and/or use cases, its not something that can be in a UI field.

That being said, for the nextcloud+redis case, you can follow #1304.

@pabloeisenhut
Copy link
Author

There is no such thing as depends_on

https://docs.docker.com/compose/startup-order/

The solution for each use case would be a field in each app where the name of the dependent app can be entered.

For example Nextcloud+Redis+Collabora

Nextcloud App Config:
Depends on: Redis

Redis App Config:
Depends on: Collabora

Collabora App Config:
Depends on: -

With this solution, a dependency could be created to determine the order of the apps to be launched.

@stavros-k What do you think about it?

@stavros-k
Copy link
Contributor

https://docs.docker.com/compose/startup-order/

Apps do not run on docker, but on kubernetes (https://kubernetes.io/)

So it's not just a "field" to populate.
Custom initContainers and scripts for each of those services must be written. Which will also open new ways for users to shoot themselves on the feet.
Those scripts will rely on the user to provide correct connection details for each of the services, the scripts must then account for all possible scenarios of deployments of those services, eg, setup with password, setup without, setup with https, http etc.

@pabloeisenhut pabloeisenhut closed this as not planned Won't fix, can't repro, duplicate, stale Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants