-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support cross-building #80
Conversation
- Specify --platform in the golang build stage - Set GOOS and GOARCH env vars - Set CGO_ENABLED=0 to build static binaries - Remove apt-get upgrades; changed base image to chainguard/static I don't think we need buildx?
330d98b
to
0ef952f
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.
LGTM!
# Add minimal stuff | ||
RUN \ | ||
apt-get update > /dev/null \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install -y --no-install-recommends \ | ||
"apt-utils=*" \ | ||
"ca-certificates=*" \ | ||
"curl=*" \ | ||
"gnupg=*" \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* |
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.
Removing this will break any setup that relies on curl
to generate the API key when apmsoak/apmbench are started via bash scripts.
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.
ugh :)
Thanks for catching that, didn't realise/forgot we were doing this.
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.
Sorry to block,it would break the load testing setup, see comment
@inge4pres thanks for catching that, should be resolved with https://github.com/elastic/apm-managed-service/pull/760. PTAL. |
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.
Thanks, tested it out with all other recent changes and it works ™️
Nice addition 👍🏼
I don't think we need buildx?