Build statically linked binary for linux/amd64
What critical bug this MR is fixing?
Currently we use make build
to build the Linux/amd64 binary. Unfortunately it compiles a dynamically linked binary (which doesn't work for example on Alpine Linux - https://dev.gitlab.org/cookbooks/packer-runner-machines/-/jobs/9092386).
This MR separates the build validate
step, that builds the binary and runs tests, from the linux amd64
compilation step, which uses make build-x
to compile the statically linked binary for this target OS/arch.
This is a blocker for https://dev.gitlab.org/cookbooks/packer-runner-machines/-/merge_requests/40/
How does this change help reduce cost of usage? What scale of cost reduction is it?
In what scenarios is this change usable with GitLab Runner's docker+machine executor?
Edited by Tomasz Maczukin