Skip to content

Faster docker development #2470

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

Merged
merged 5 commits into from
Apr 3, 2024
Merged

Conversation

Nemo157
Copy link
Member

@Nemo157 Nemo157 commented Mar 26, 2024

This is a set of various changes I did to make working on the UI faster while using a docker-compose instance. Overall it about halved the time between changing a templates/style file and being able to view the result for me after docker compose up -d --build web. (And allows changing the JS on the fly and just reloading the page).

@Nemo157 Nemo157 requested a review from a team as a code owner March 26, 2024 14:43
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Mar 26, 2024
@Nemo157
Copy link
Member Author

Nemo157 commented Mar 27, 2024

So this also affects CI times, it significantly slows down the clean build because of optimizing all dependencies, but speeds up the incremental build a little (though that is dominated by times that it doesn't affect), it also slightly reduces the cache size (by ~5%).

clean incremental
before image image
after image image

@Nemo157 Nemo157 force-pushed the faster-docker-dev branch from 4cca883 to b75dd2d Compare March 27, 2024 13:03
@GuillaumeGomez
Copy link
Member

Still looks good to me. 👍

Copy link
Member

@syphar syphar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thanks!

I'm fine with the changes, so you can merge when the conflicts are fixed.

Nemo157 added 5 commits April 2, 2024 11:36
Unless you're doing clean builds all the time, having optimized dependencies and
reducing the debuginfo generated for them is faster because it makes the linker
do less work.

Bump cache key because this replaces all cached dependencies
This improves turnaround speed when locally testing changes that require
rebuilding the docker image.
@Nemo157 Nemo157 force-pushed the faster-docker-dev branch from b75dd2d to 257b92f Compare April 2, 2024 09:38
@syphar syphar merged commit 7485f33 into rust-lang:master Apr 3, 2024
8 checks passed
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Apr 3, 2024
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants