-
Notifications
You must be signed in to change notification settings - Fork 345
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
Build operator image from non-Linux local OS #982
Comments
The I assume you're on another platform than Linux, so you can do:
|
Yeah, maybe we can embed that in the scripts for only when doing |
Thx for the quick reply. It makes sense - and yes, I'm on a mac. If I execute
the build fails though. I'm reading through the cross compilation section of the go manual and I see that I also have to provide GOARCH=amd64. The build still fails though
|
Ah, it's too wide so the test binaries target the Linux OS too. We're going to fix it as suggested by @nicolaferraro. In the meatime, you can do:
To build the image locally for Linux. |
Ideally, the |
I did the following and then it worked. Thanks a lot for your help. I'll now get started getting more acquainted with the project. Let me know if there's anything specific you would like me to look at. Otherwise I'll probably look if I can fix any of the open issues. |
@jacobborella happy to have you on the project. You can start with the issues labelled as easy fix. Otherwise, I think #751 or #665 could be interesting candidates to get hands-on into the project. |
Hi.
I would like to contribute to this awesome project, so as a first thing, I set out to build the project as adviced in the contributing guide.
I'm using minikube (v1.3.1) on a mac and after setting up the environment, I run
make install-minikube
The build is going through fine, but the operator fails:
$ kubectl get pod
NAME READY STATUS RESTARTS AGE
camel-k-operator-5f8644979d-5wb6l 0/1 Error 6 5m58s
$ kubectl logs pod/camel-k-operator-5f8644979d-5wb6l
standard_init_linux.go:211: exec user process caused "exec format error"
I tried reverting to latest release 1.0.0-M1 and then everything works just fine. Can you please advice?
The text was updated successfully, but these errors were encountered: