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

Make agent static build the default for host build as well #728

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sgaist
Copy link

@sgaist sgaist commented Jan 13, 2023

Issue #472

Description of changes:
Change the default agent build type when done on host to static as is done when using Docker. This will ensure that people have a working version of the agent when building the microVM image.

The build can still be turned back to dynamic by calling make STATIC_AGENT=.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

When following the getting started guide, the commands are all executed on the
host and the agent built is dynamically linked. This will trigger an error when
running a container as the microVM image's glibc version will likely not match
the one from the host. Setting STATIC_BUILD to on for the host as is done for
the docker build ensure that the agent is suitable for use by the microVM.Ensure agent is build statically in all cases
@sgaist sgaist requested a review from a team as a code owner January 13, 2023 14:49
@vistaarjuneja
Copy link

thank you, I was facing the same error and this helped me fix it!

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.

2 participants