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

[release 0.7] backport image building fixes #869

Merged
merged 2 commits into from Aug 30, 2022

Conversation

marquiz
Copy link
Contributor

@marquiz marquiz commented Aug 29, 2022

  • images: build statically linked binaries
    We use scratch as the base image now so now dynamically loaded libs are
    available.
  • Makefile: don't change dir when running go build
    This fixes build of agent and webhook images. Otherwise they will fail
    because go-build is not able to find the vcs information. Could be
    handled with '-buildvcs=false' build flag but just removing chdir seems
    simpler. Plus, we get the vcs information in the go binary.

We use scratch as the base image now so now dynamically loaded libs are
available.

(cherry picked from commit 04454e1)
This fixes build of agent and webhook images. Otherwise they will fail
because go-build is not able to find the vcs information. Could be
handled with '-buildvcs=false' build flag but just removing chdir seems
simpler. Plus, we get the vcs information in the go binary.

(cherry picked from commit 82acdf6)
Copy link
Contributor

@klihub klihub left a comment

Choose a reason for hiding this comment

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

LGTM.

@marquiz marquiz merged commit 0e82df7 into intel:release-0.7 Aug 30, 2022
@marquiz marquiz deleted the backports/release-0.7 branch August 30, 2022 07:28
@marquiz marquiz mentioned this pull request Aug 30, 2022
25 tasks
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.

None yet

2 participants