You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "arheom (via GitHub)" <gi...@apache.org> on 2024/02/02 13:24:39 UTC
[I] Karavan on minikube on macos does not start [camel-karavan]
arheom opened a new issue, #1096:
URL: https://github.com/apache/camel-karavan/issues/1096
As context, I have a macOS with arm, and I try to install the latest karavan (4.3.0) on a minikube on it.
I followed the instructions from github, and also including with colima and it does not work. I managed to make it working with colima on docker, but not on minikube.
All pods start, except the karavan one, with the error:
> exec /__cacert_entrypoint.sh: exec format error
which I understood comes from the fact it tries to run on arm.
Anyone experimented with minikube on macos? Do you have any hint to try it out?
Thanks!
--
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.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Karavan on minikube on macos does not start [camel-karavan]
Posted by "arheom (via GitHub)" <gi...@apache.org>.
arheom closed issue #1096: Karavan on minikube on macos does not start
URL: https://github.com/apache/camel-karavan/issues/1096
--
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.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Karavan on minikube on macos does not start [camel-karavan]
Posted by "arheom (via GitHub)" <gi...@apache.org>.
arheom commented on issue #1096:
URL: https://github.com/apache/camel-karavan/issues/1096#issuecomment-1923930270
Thats great to know it works on macos (I have M1). Do you have any suggestion what to try? I used this guide here: https://github.com/apache/camel-karavan/blob/main/docs/WEB_KUBERNETES.md
with some exceptions, like I could not install hyperkit:
> hyperkit: The x86_64 architecture is required for this software.
> Error: hyperkit: An unsatisfied requirement failed this build.
Thanks!
--
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.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Karavan on minikube on macos does not start [camel-karavan]
Posted by "arheom (via GitHub)" <gi...@apache.org>.
arheom commented on issue #1096:
URL: https://github.com/apache/camel-karavan/issues/1096#issuecomment-1931667343
I forked the repo, to be able to easily test the flows and I managed to publish the devmode image with multi platform architecture and I could test it that it works well. I changed the code to this:
```
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./karavan-web/docker
platforms: linux/amd64,linux/arm64
file: karavan-web/docker/Dockerfile.devmode
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
```
--
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.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Karavan on minikube on macos does not start [camel-karavan]
Posted by "mgubaidullin (via GitHub)" <gi...@apache.org>.
mgubaidullin commented on issue #1096:
URL: https://github.com/apache/camel-karavan/issues/1096#issuecomment-1923833974
I use MacOS with M2 to develop Karavan. Works well both Docker and Minikube
--
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.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Karavan on minikube on macos does not start [camel-karavan]
Posted by "mgubaidullin (via GitHub)" <gi...@apache.org>.
mgubaidullin commented on issue #1096:
URL: https://github.com/apache/camel-karavan/issues/1096#issuecomment-1924126035
I used minikube with docker driver https://minikube.sigs.k8s.io/docs/drivers/docker/
--
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.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Karavan on minikube on macos does not start [camel-karavan]
Posted by "arheom (via GitHub)" <gi...@apache.org>.
arheom commented on issue #1096:
URL: https://github.com/apache/camel-karavan/issues/1096#issuecomment-1929183758
From what I understood, in order to work on multi arch, the image needs to support it. When I try to get the correct image for my platform:
```
docker pull --platform linux/arm64 ghcr.io/apache/camel-karavan:4.3.1
4.3.1: Pulling from apache/camel-karavan
Digest: sha256:a17e537d15969a95d4bbb970d2b312ae8dd9a5017c9c89349d68906e4a805cee
Status: Image is up to date for ghcr.io/apache/camel-karavan:4.3.1
image with reference ghcr.io/apache/camel-karavan:4.3.1 was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64
```
Getting the amd64 image.
From what I understood, here: https://cloud.google.com/kubernetes-engine/docs/how-to/build-multi-arch-for-arm
we could support both architectures with buildx and it will append the 2 manifests, so we can pull the proper one, based on our environment.
Maybe could you point me in the right direction where this happens into the code, maybe I could make a PR to build the image in both arch if not already done?
--
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.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Karavan on minikube on macos does not start [camel-karavan]
Posted by "arheom (via GitHub)" <gi...@apache.org>.
arheom commented on issue #1096:
URL: https://github.com/apache/camel-karavan/issues/1096#issuecomment-1929723443
From what I can see inside the github workflows, this could be resolved relatively easily:
- app.yml is using the https://quarkus.io/guides/container-image for packaging the images, which supports buildx
- docker-devmode.yml is using docker/build-push-action@v3 , which could be replaced with crazy-max/ghaction-docker-buildx@v1, like here https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
As I never worked on github workflows, do you know a way I could test those locally, eventually I could make the changes to support multi arch mode.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org