Skip to content
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

Remove buildroot and compile static binaries from source #143

Merged
merged 3 commits into from
May 22, 2023

Conversation

klutchell
Copy link
Owner

@klutchell klutchell commented Apr 4, 2023

Allow faster development by controlling build steps in this project
rather than deferring changes to buildroot.

This is a potentially breaking change, but efforts have been made
to maintain paths and usernames for compatibility with previous
releases.

@klutchell klutchell force-pushed the kyle/alpine-source branch from c04271e to c567451 Compare April 4, 2023 16:45
@klutchell klutchell force-pushed the kyle/alpine-source branch 3 times, most recently from bf25e6e to 3d1aeda Compare May 17, 2023 12:47
@klutchell klutchell changed the title Build unbound and ldns from source with alpine Remove buildroot and compile static binaries from source May 17, 2023
@klutchell
Copy link
Owner Author

Unfortunately this increases the image size from ~7MB to ~37MB. Even with better compression and stripping of binaries having them all include static libraries introduces bloat.

Allow faster development by controlling build steps in this project
rather than deferring changes to buildroot.

This is a potentially breaking change, but efforts have been made
to maintain paths and usernames for compatibility with previous
releases.

Signed-off-by: Kyle Harding <kyle@balena.io>
@klutchell klutchell force-pushed the kyle/alpine-source branch from 3d1aeda to cbc8d02 Compare May 17, 2023 16:29
We don't want to overwrite the root.keys file provided
by the root overlay.

Signed-off-by: Kyle Harding <kyle@balena.io>
@klutchell klutchell force-pushed the kyle/alpine-source branch from c35c886 to 3fe9688 Compare May 17, 2023 17:57
Signed-off-by: Kyle Harding <kyle@balena.io>
@klutchell klutchell force-pushed the kyle/alpine-source branch from 3fe9688 to bc18e9f Compare May 17, 2023 18:46
@klutchell klutchell mentioned this pull request May 17, 2023
@klutchell
Copy link
Owner Author

With shared libraries and stripped binaries this is actually smaller than the buildroot image at ~5MB.

@klutchell
Copy link
Owner Author

diff.txt

@klutchell klutchell marked this pull request as ready for review May 22, 2023 13:48
@klutchell klutchell merged commit 4a9bee6 into main May 22, 2023
@klutchell klutchell deleted the kyle/alpine-source branch May 22, 2023 13:48
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.

1 participant