-
Notifications
You must be signed in to change notification settings - Fork 23
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
add bottlerocket tools to twoliter binary #47
Conversation
03e54a7
to
b6c81c3
Compare
ae17df4
to
139880e
Compare
49c31da
to
9035614
Compare
82cb765
to
6ebb528
Compare
6ebb528
to
8a945cf
Compare
8a945cf
to
c6b7e09
Compare
cda4f71
to
544cf34
Compare
5406dc0
to
14a9919
Compare
Substantial rework of how the tools are embedded. As it turns out, and this makes sense, I cannot figure out a way to compress these bytes right now. The |
97aa59f
to
552f924
Compare
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.
Trying to reduce twoliter
size a bit, I tested combinations of these settings in Cargo.toml
:
[profile.release]
strip = "debuginfo"
codegen-units = 1
lto = true
At a bare minimum, I'd recommend stripping debuginfo.
Setting codegen units to 1 is the biggest one but costs the most in terms of added time. If we go there then we may as well go full LTO for the extra 18% size reduction. This seems worthwhile if our release builders can handle it, but definitely not for CI.
552f924
to
9af3a99
Compare
Add release profile with one codegen unit. |
9af3a99
to
84b795a
Compare
Rebase over the latest tools changes from Bottlerocket. Includes:
|
84b795a
to
158e517
Compare
Nice. This change took the binary from 380M to 80M! |
Tacked on a commit to stop the unhelpful printing of the entire cargo make invocation which makes it harder for people to find the real error. |
Adds Rust tools and scripts, originally located in the Bottlerocket repo, to Twoliter's embedded tools.
Buildsys requires these changes to work with the tools embedded in the Twoliter binary.
Adds a command that can be used to dump the tools for further inspection.
Enable printing the current version with twoliter --version
It is not a good idea to print the entire cargo make command when an error occurs. This is making it harder for people to find the real' error and could reveal secrets. Best to be quiet about what command was invoked under the hood.
a527e07
to
ace7b30
Compare
Rebase to pickup changes from Bottlerocket. |
Issue #, if available:
Closes #14
Closes #9
Closes #32
Partly Addresses #43 (We install it here, but should probably still eliminate it in favor of a lib)
Description of changes:
Embed tools such as
buildsys
, and scripts such asrpm2img
into the Twoliter binary. Use them when building BottlerocketTesting
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.