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

How should services with dependencies be handled? #782

Open
ParetoOptimalDev opened this issue Aug 9, 2023 · 1 comment
Open

How should services with dependencies be handled? #782

ParetoOptimalDev opened this issue Aug 9, 2023 · 1 comment
Labels
question Further information is requested

Comments

@ParetoOptimalDev
Copy link

reproducible error with:

$ cd /tmp
/tmp $ git clone https://github.com/ParetoOptimalDev/reproduce--devenv-nginxhostctl-node-issue

Cloning into 'reproduce--devenv-nginxhostctl-node-issue'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 14 (delta 2), reused 14 (delta 2), pack-reused 0
Receiving objects: 100% (14/14), 4.43 KiB | 4.43 MiB/s, done.
Resolving deltas: 100% (2/2), done.
/tmp $ cd reproduce--devenv-nginxhostctl-node-issue/ 
/tmp/reproduce--devenv-nginxhostctl-node-issue $ devenv up
# crashes because nginx proxypass depends on redis being up and redis goes down because nginx went down

Though it seems I can't even ping it so maybe hostctl isn't working?

@domenkozar
Copy link
Member

You would need to use process-compose process implementation: https://github.com/cachix/devenv/blob/main/examples/process-compose/devenv.nix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants