jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
7.94k stars 191 forks source link

Reuse process-compose if available #1999

Open diegobernardes opened 3 months ago

diegobernardes commented 3 months ago

What problem are you trying to solve?

I'm installing Devbox on GitHub Actions using the following snippet:

- name: Install devbox
  uses: jetify-com/devbox-install-action@v0.9.0
  with:
    enable-cache: true

It works alright and everything is installed and cached, the run after the cache is quite fast, 40 seconds or so to install everything and restore the cache. But not everything is cached and the issue happens when I try to spin up the dependencies to run my tests. Every time it installs process-compose and that process takes quite some time because there is no cache. I tried to add process-compose to my list of packages on Devbox, but it did not worked, even listed there, Devbox tries to download it every time.

What solution would you like?

If process-compose is at the packages list of Devbox it should be reused.

Alternatives you've considered

No response

jay-aye-see-kay commented 3 months ago

I just ran into this issue today too, would be fantastic to have an option like this that pre-installed and cached process-compose in CI jobs where it was used.

- name: Install devbox
  uses: jetify-com/devbox-install-action@v0.9.0
  with:
    enable-cache: true
    install-process-compose: true

Note: Installing process-compose is ~25% the run time of this particular github action. Not the end of the world, but feels like it could be an easy win.