-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ci: reorg docker images #33815
ci: reorg docker images #33815
Conversation
it seems that it doesn't 🤔 I saw a pipeline success without this changes but with the latest images. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks!
i wonder if it'd make sense to eventually break out some of the RUN
stuff to separate scripts that we can share with bare metal ci machine setup, etc
# HACK: These are in our docker images, need to be removed from CARGO_HOME | ||
# because we try to cache downloads across builds with CARGO_HOME | ||
# cargo lacks a facility for "system" tooling, always tries CARGO_HOME first | ||
cargo uninstall cargo-audit &>/dev/null || true | ||
cargo uninstall svgbob_cli &>/dev/null || true | ||
cargo uninstall mdbook &>/dev/null || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
Codecov Report
@@ Coverage Diff @@
## master #33815 +/- ##
=========================================
- Coverage 81.8% 81.8% -0.1%
=========================================
Files 807 807
Lines 217406 218026 +620
=========================================
+ Hits 178043 178524 +481
- Misses 39363 39502 +139 |
oh yeah! I think it's a good idea. If we have those scripts, we can simply copy and run them when building the Docker image. btw, I'm considering moving all tests to Docker. That way, maybe no one will need to set up their CI machines; they'll just need to install Docker 😈 |
Problem
we mount home directory and cargo directory when we run docker. actually we can just install those dependencies into our docker image.
Summary of Changes
build our Docker images on Ubuntu.
(will upload these images when I get approve. I have already test them and all green 🤞 but I will still run them with our ci agents again to ensure everything is fine)