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

Cherry-pick #20827 to 7.9: [Build] Make mage-linux-amd64 statically compiled. #20838

Merged
merged 2 commits into from
Sep 2, 2020

Conversation

ph
Copy link
Contributor

@ph ph commented Aug 27, 2020

Cherry-pick of PR #20827 to 7.9 branch. Original message:

When I've upgraded my arch system, they have upgraded the libc library,
that libary is much newer than the library used in the crossbuild
docker images. This made building beats impossible because the
mage-linux-amd64 is compiled dynamically and used in all our docker
build.

This PR make the mage binary to be statically compiled so it doesn't
rely on any installed libraries.

What does this PR do?

Why is it important?

Checklist

  • My code follows the style guidelines of this project
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Author's Checklist

  • [ ]

How to test this PR locally

Run mage package in any beats.

Related issues

Use cases

Screenshots

Logs

* [Build] Make mage-linux-amd64 statically compiled.

When I've upgraded my arch system, they have upgraded the libc library,
that libary is much newer than the library used in the crossbuild
docker images. This made building beats impossible because the
mage-linux-amd64 is compiled dynamically and used in all our docker
build.

This PR make the mage binary to be statically compiled so it doesn't
rely on any installed libraries.

(cherry picked from commit 273ecae)
@ph ph added [zube]: In Review backport Team:Platforms Label for the Integrations - Platforms team Team:Services (Deprecated) Label for the former Integrations-Services team labels Aug 27, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 27, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Aug 27, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Aug 27, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20838 updated]

  • Start Time: 2020-08-27T19:59:29.711+0000

  • Duration: 73 min 44 sec

Test stats 🧪

Test Results
Failed 0
Passed 19389
Skipped 1841
Total 21230

Steps errors

Expand to view the steps failures

  • Name: Install Go 1.14.7
    • Description: .ci/scripts/install-go.sh

    • Duration: 1 min 57 sec

    • Start Time: 2020-08-27T20:23:07.048+0000

    • log

@ph
Copy link
Contributor Author

ph commented Sep 1, 2020

@kaiyan-sheng I supposed I can merge it?

@ph ph merged commit 4bc088b into elastic:7.9 Sep 2, 2020
@zube zube bot removed the [zube]: Done label Dec 2, 2020
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…cally compiled. (elastic#20838)

* [Build] Make mage-linux-amd64 statically compiled. (elastic#20827)

* [Build] Make mage-linux-amd64 statically compiled.

When I've upgraded my arch system, they have upgraded the libc library,
that libary is much newer than the library used in the crossbuild
docker images. This made building beats impossible because the
mage-linux-amd64 is compiled dynamically and used in all our docker
build.

This PR make the mage binary to be statically compiled so it doesn't
rely on any installed libraries.

(cherry picked from commit 777eece)

* changelog quirks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Platforms Label for the Integrations - Platforms team Team:Services (Deprecated) Label for the former Integrations-Services team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants