Skip to content
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

ARM64 - build multi-arch images #17

Open
sixeyed opened this issue Jul 11, 2021 · 3 comments
Open

ARM64 - build multi-arch images #17

sixeyed opened this issue Jul 11, 2021 · 3 comments

Comments

@sixeyed
Copy link
Owner

sixeyed commented Jul 11, 2021

https://twitter.com/marvinkturner/status/1414281300786155522

@mkturner
Copy link

Thanks, just more details: I also tried the exercise on a Ubuntu VM via Parallels and got the same results. So, hoping multi-arch images will do the trick.

@bendono
Copy link

bendono commented Sep 26, 2021

I prepared a three node Raspberry Pi cluster to begin learning K8s. Unfortunately, I have been having trouble making progress with KIAMOL. It was not until I looked at the container definitions and manually tried running them in Docker that I realized that ARM V7 was not supported. I really hope that this can be sorted out soon.

@jurlwin
Copy link

jurlwin commented Nov 22, 2022

I've been building my own images along the way and pushing to my docker.io account, as we have the definition for most of the images -- I'm still looking for a few - I'm using ARM64 so your mileage may vary.

Fundamentally:

build images you want
tag for your account
add manifest
push manifest
change deployment file from kiamol/image to /image
(I used "diamol" to learn how to do some of this.)

e.g. ch11 bulletin board. cd to ch11/bulletin-board
docker build -t kiamol/ch11-bulletin-board:linux-arm64 --platform linux/arm64 -f docker/Dockerfile .
docker build -t kiamol/ch11-bulletin-board:linux-amd64 --platform linux/amd64 -f docker/Dockerfile .
docker build -t kiamol/ch11-bulletin-board:linux-arm --platform linux/arm -f docker/Dockerfile .

docker image tag kiamol/ch11-bulletin-board:linux-arm64 jurlwin/ch11-bulletin-board:linux-arm64
docker image tag kiamol/ch11-bulletin-board:linux-amd64 jurlwin/ch11-bulletin-board:linux-amd64
docker image tag kiamol/ch11-bulletin-board:linux-arm jurlwin/ch11-bulletin-board:linux-arm

docker manifest create "jurlwin/ch11-bulletin-board" "jurlwin/ch11-bulletin-board:linux-amd64" "jurlwin/ch11-bulletin-board:linux-arm64" "jurlwin/ch11-bulletin-board:linux-arm"
docker manifest push "jurlwin/ch11-bulletin-board"

You are welcome to pull mine, but I'm not paying attention as I go and I may have good or bad results for you.

But I'm also still in progress.. :)

Good luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants