-
Notifications
You must be signed in to change notification settings - Fork 713
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
Require image for ARM64 architecture #3830
Comments
That's a 3rd-party package, so you could try asking in their repo. I note in your log that the line that failed says (also I would suggest you try to make buildx log in a more linear fashion for CI) |
I have successfully built and pushed the scope image to dockerhub using buildx in circle-ci. I have used odidev/cloud-agent image in “Dockerfile.scope_multiarch'' as current weaveworks/cloud-agent image does not have arm64 tag. Commit Link - If the changes look good I am happy to raise the PR. |
Thanks for looking further at this. We currently have a 2-stage build with the Dockerfile in Can you rationalise this so there is only one build mechanism? I don't want to have to maintain two similar sets of code. Note changes under way at #3833. |
I have used a multi-stage build in dockerfiles as the image will contain only the required binaries and files and it will be of less size. So, I have built the binaries in one stage and in the second stage just copied the binaries. Can you point me on what part of the changes need to be updated as I have checked backend dockerfile and multi-stage has not been used in the same? Please let me know if I misunderstood anything here. Thanks. |
Although it is not using Docker's 2-stage syntax, the odidev@ab26095#diff-e1add86e962a42a5ca0b3b0cb7cdb54a80b4dc76e8f0650caa4d86587ecf83d1R5 Line 7 in 053afd5
It may be that the current build image ends up being removed. For instance we could switch to Separately, having looked more closely, I am confused why your |
As per your suggestion, I have modified the files. In docker/Dockerfile.cloud-agent_multiarch file I have used golang-lint as the builder image but still, there was a need to install time and libpcap-dev dependencies. Commit Link - odidev@a9db29c Please share your suggestions on this. |
#3845 reminded me there is a I think this was to do with needing C libraries for pcap, which as you say you have included in your build. So it would be good to re-add that feature on arm. Fixing that is not essential to move forward with this though. Could you open a PR? |
Raised PR. |
any updates on this ? |
@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:
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?
The text was updated successfully, but these errors were encountered: