Giter VIP home page Giter VIP logo

Comments (8)

guyarb avatar guyarb commented on September 25, 2024 2

@mostafa amazing, we tested it and it works
Thank you for the taking care of it 🙇🏻

from xk6-kafka.

guyarb avatar guyarb commented on September 25, 2024 1

Sure! once there is an image I can test it

from xk6-kafka.

DanielLavie avatar DanielLavie commented on September 25, 2024 1

Hey @mostafa, I've tested it on my ARM machine and it worked fine.
I just used the following command: docker build --platform linux/arm64 --build-arg "VERSION_TAG=v0.23.1" --build-arg "K6_BINARY=dist/xk6-kafka_v0.23.1_linux_arm64" --tag xk6-kafka:v0.23.1 . instead of your original one

from xk6-kafka.

mostafa avatar mostafa commented on September 25, 2024

Hey @guyarb,

That is absolutely possible, yet I don't have a machine to test that. Is that something you'd be willing to do? Let me know if you need anything.

from xk6-kafka.

mostafa avatar mostafa commented on September 25, 2024

Hey @guyarb,

Run these commands on your machine to see if the resulting image works for you. Considering that you have Go 1.22 installed and available on your $PATH:

git clone [email protected]:mostafa/xk6-kafka.git && cd xk6-kafka
mkdir dist
go install go.k6.io/xk6/cmd/xk6@latest
GOOS=linux GOARCH=arm64 xk6 build --output dist/xk6-kafka_v0.23.1_linux_arm64 --with github.com/mostafa/[email protected]=.
docker build --platform linux/arm64 --build-arg "VERSION_TAG=v0.23.1" --tag xk6-kafka:v0.23.1 .
docker image inspect $(docker images -q xk6-kafka) | jq '.[] | .Architecture' # SHOULD PRINT "arm64"
docker run --rm -i xk6-kafka:v0.23.1 run - <scripts/test_json.js # THIS SHOULD WORK

If all the above commands work as expected on your machine, I'll merge this PR and release a multi-platform image that you can use.

from xk6-kafka.

mostafa avatar mostafa commented on September 25, 2024

@guyarb

Forgot to mention that you should also switch to the branch to test the changes. But that's okay. I'll try to release a version to see if it works. If not, I'll fix it and release another version.

from xk6-kafka.

mostafa avatar mostafa commented on September 25, 2024

@guyarb @DanielLavie
Now the arm64 image is available on Docker Hub. Please test it.

from xk6-kafka.

mostafa avatar mostafa commented on September 25, 2024

@guyarb Perfect! Glad it was helpful.

from xk6-kafka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.