Description
@bboreham
As mentioned in this comment, I am working on building and pushing scope images. I have created a new dockerfile for scope and did the changes in order to use buildx in Circle-CI to build and push the image for both platforms to dockerhub.
But the issue here is the docker image for cloud agent also needs to be built for arm64 platforms. I did the changes but was not able to build the scope binary using command time env GOGC=off CGO_ENABLED=1 go build -mod vendor -ldflags "-extldflags "-static" -X main.version="${VERSION}" -s -w" -tags 'netgo unsafe' -o scope ./prog and getting the below error:
[linux/amd64 builder 6/8] RUN time env GOGC=off CGO_ENABLED=1 go build -mod vendor -ldflags "-extldflags "-static" -X main.version="cfd945255" -s -w" -tags 'netgo unsafe' -o scope ./prog:
#25 126.1 # github.com/iovisor/gobpf/elf
#25 126.1 vendor/github.com/iovisor/gobpf/elf/elf.go:51:10: fatal error: linux/unistd.h: No such file or directory
#25 126.1 51 | #include <linux/unistd.h>
#25 126.1 | ^~~~~~~~~~~~~~~~
#25 126.1 compilation terminated.
#25 145.4 Command exited with non-zero status 2
Changes done: odidev@69ec3a8
Circle-CI logs: https://app.circleci.com/pipelines/github/odidev/scope/2/workflows/4402deee-847e-4d5e-9618-cadd12719e49/jobs/4
Can I get any suggestions on the above issue?