UffizziCloud / uffizzi

Build self-serve developer platforms in minutes, not months with out-of-the-box Kubernetes multi-tenancy, virtual clusters, cloud-based dev environments, customizable templating, and more.
https://uffizzi.com
Apache License 2.0
325 stars 25 forks source link

Support for the docker-compose `depends_on` option #132

Open moklidia opened 2 years ago

moklidia commented 2 years ago

Add support for depends_on short and long syntax as described in the documentation.

https://docs.docker.com/compose/compose-file/#depends_on

Kubernetes docs: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/

waveywaves commented 2 years ago

This is becoming increasingly important for previews, too many container restarts if container is not up.

How is init container like depends_on in this case ? This seems to be a harder problem than init container considering that the depends on chain can be like a DAG (directed acyclic graph).

Might be useful to get some inspiration from the tekton entrypoint https://github.com/tektoncd/pipeline/blob/main/cmd/entrypoint/README.md