-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add support of arm64 for image karatelabs/karate-chrome #2422
Comments
@jandry do consider contributing code or influencing someone who can |
Not sure at all that solution is working in pipeline but here is a trial PR |
@jandry thanks ! I have a concern with I am ok to ship a second docker image based on chromium if that helps, you can see how we do the release build here - after build-docker.sh runs: https://github.com/karatelabs/karate/blob/develop/.github/workflows/maven-release.yml |
Make sens. I will try to do that next xeek |
@ptrthomas I pushed an update that should build both images I also switch default image pushed to local docker for tests depending platform for local testing. Default still the chrome one except on mac darwin How can I check if push is working ? That the only part where I'm not sure : right tag, reuse of cache and login working |
@jandry you mean pushing to docker hub ? it is done as a github-action I can take care of that. we'll probably release 1.5.0.RC2 in a weeks time, so I will watch how it goes and tweak then |
I believe there are ways to run github actions locally if you search, but I have never tried @jandry thanks a lot for contributing this :) |
Thanks a lot for this super Open Source test framework Yes I wanted to test in the git action to push is working fine. I'm working with gitlab CI usually so I'm not sure how is the isolation between actions is working. Because the "build docker" action is creating a cache in target/docker that is reused in the push action to retrieve already created layers. |
@jandry I really don't know, but will watch out for this. there is a concept of "matrix build" and I think one option is to fork the build into 2 parallel jobs |
From what I read seems ok because you use steps in the same job (called build) so it still on same runner with same workspace |
So what is the status of this issue? |
@daviddavidgit there is an open PR: #2424 - do contribute if you can |
As far as I unsterstand it correctly, the code from @jandry must be tested on github actions. @ptrthomas would it not be the easiest way if you test this PR, since you have permission to do that? |
Yes , I can't do better 😅 |
@jandry okay, apologies - I have a lot of stuff on my plate. may I request that you tweak the PR so that there are zero changes to I also wonder if in the meantime if chrome for arm is available, I haven't checked |
Unfortunately there is still no linux/arm version of chrome. |
@ptrthomas yes it's a what you initially asked for. So it's what I did: This line build the chrome one only for linux/amd64 as actually This line build the new chromium one on both platform I didn't isolate in two different jobs for optimization purpose. Some elements of first build are reuse is second build thanks to the cache |
@jandry okay, agreed with the approach. but trying to make sure - see screenshot below - this should be reverted right ? |
Yes you are right |
#2422 Add support of arm64 for image karatelabs/karate-chrome
@jandry well, the attempt to run the docker push failed and I have no idea why. the login step (and credentials) were not changed at all, and they seem ok https://github.com/karatelabs/karate/actions/runs/9401006648/job/25891832379 |
That's what I couldn't test locally. locally a default name was working. Maybe because of I didn't put the "karatelabs/" before all image names I can't push to my pull request anymore as you merged it I think we should adjust like follow to also push the version number for the first image tag and latest for second tag
|
@jandry please just open a new PR, because I don't know buildx and where to use the |
@ptrthomas done here #2571 |
@jandry sorry that's the wrong file. the change needs to be made in https://github.com/karatelabs/karate/blob/6f162bbb1a20e955a4b8b1ba82bb53196bdb833b/.github/workflows/maven-release.yml I would have done it but I don't know the syntax as I said before. anyway I merged it and ran the CI job without realizing that nothing had changed |
@ptrthomas I made the changes in the requested file, see #2573. |
@daviddavidgit failed with a different error :( https://github.com/karatelabs/karate/actions/runs/9501098584/job/26185805847#step:7:233 |
update: have reverted to old state, since we don't have a solution yet: 351c4d2 |
Hi,
As a growing part of developer are using M1 or M2 and that you now support more officially karatelabs/karate-chrome, it could be great to support multi os on the image adding arm64
Regards
The text was updated successfully, but these errors were encountered: