-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Improve the devcontainer experience #3492
Improve the devcontainer experience #3492
Conversation
Personally, I would like to see the Dockerfiles stay separate. Much simpler to know which changes are for the main build vs just for the devcontainer. And then as other dockerfiles are being added like in #2548 the dev container will need to encapsulate all that as well getting more complicated. |
I'm just not sure how to achieve the same result by splitting the Dockerfiles. |
Yeah that makes sense, to avoid needing to make locally it'll have to be in the same file most likely |
Unless by: Which is probably not going to be implemented any time soon. |
Originally I had split the web build out because webpack would take forever on arm when doing builds in buildx for multiarch. It would also crash when building on the Pi because it would run out of memory. This may not be so bad because vite is so fast now. |
… improve-devcontainer
8e38bad
to
35ab377
Compare
593af8b
to
3a3f19e
Compare
✅ Deploy Preview for frigate-docs canceled.
|
This is ready to review again, demo: Code_RKnN4heJiB.mp4 |
I think this looks good to me upon trying it, running on macos all I need to do is comment out the devices in the docker-compose but this is already the case with todays container. |
The testing repo (#4368) is causing some issues now. At first, it comes with a nodejs newer than the one we wanted and broke |
Did you see this suggestion? #4368 (comment) |
I wasn't able to make such thing work like But I think I found a better solution, though. Check last commit. |
Ok, should be ready to review again. |
* Make it easier to run the devcontainer * Some more improvements * Tidy up few other things * Better name stages * Fix CI * Setup everything with one click * Allow to set IMAGE_OWNER * Change IMAGE_OWNER to IMAGE_REPO * Fix CI with IMAGE_REPO * Fix nodejs installation * Test devcontainer build as part of CI * Build devcontainer in its own job * Fix devcontainer cli installation * Fix devcontainer build * Fix devcontainer build in CI again * Enable buildkit only * Increase coverage of devcontainer test * Fix devcontainer start in CI * Ensure latest version of docker compose is used * Fix install compose action * Disable CI stuff which does not work until we fix them
I decided to give a shot in the devcontainer today, and I realized some improvements could be made.
make local
)