You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/03/17 11:52:08 UTC

[GitHub] [camel-k] astefanutti commented on pull request #2141: fix: disable CGO when building on Fedora to avoid linking issues on the Ubuntu-based image (#2140)

astefanutti commented on pull request #2141:
URL: https://github.com/apache/camel-k/pull/2141#issuecomment-801021147


   My understanding is that the Kamel binary added to the operator image should be built on the image OS. I think that the current approach, that is to build the `kamel` binary locally, and add it to the operator image, is either an heritage of how the operator SDK scaffolded the project at its creation, or a convenient way to re-use the binary that is also used for the client CLI. We already cross-compiled the binary, which deactivates CGO, when it's built on non Linux OS. 
   
   It seems a possible solution would be to refactor the Dockerfile, and use a build stage to compile the binary on the same OS as the final image.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org