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

Add Dockerfile.arm32v6 #81

Merged
merged 4 commits into from
Jan 20, 2019
Merged

Add Dockerfile.arm32v6 #81

merged 4 commits into from
Jan 20, 2019

Conversation

toolboc
Copy link
Contributor

@toolboc toolboc commented Jun 2, 2018

Add arm32v6 compatible docker image to support devices like Raspberry Pi 2/3 etc.

@linki
Copy link
Owner

linki commented Jun 2, 2018

Thank you @toolboc,

I'm currently building images automatically on quay.io which runs on Intel-backed instances, I assume. Can you change the Dockerfile so that it uses an x86-compatible image for cross-compiling the binary and then use the arm image only in the final step (similar to building for PowerPC: https://github.com/linki/chaoskube/blob/master/Dockerfile.ppc64le)

I'm not an expert in this so please let me know if you have a better idea.

@linki
Copy link
Owner

linki commented Jun 4, 2018

@toolboc Image build still fails because the arm container also executes some commands.

I know it's not optimal but for now I would suggest to just put in the binary and leave out the chaoskube user as well as the dumb-init stuff (similar to https://github.com/linki/chaoskube/blob/master/Dockerfile.ppc64le).

At least this makes the image build. I think you can still run it as non-root by passing a uid at runtime (e.g. for powerpc: docker run -u 2000 quay.io/linki/chaoskube:v0.9.0-ppc64le --version).

@toolboc
Copy link
Contributor Author

toolboc commented Jan 16, 2019

Is this ready for merge now?

@linki
Copy link
Owner

linki commented Jan 20, 2019

@toolboc Yes! Thanks a lot! Worked fine on my old rpi2 😄

@linki linki merged commit 9de6933 into linki:master Jan 20, 2019
@linki
Copy link
Owner

linki commented Jan 20, 2019

You can find the arm images here:

docker run quay.io/linki/chaoskube:v0.12.0-arm32v6 --help
docker run quay.io/linki/chaoskube:v0.12.0-arm64v8 --help

@toolboc toolboc deleted the arm32v6 branch January 22, 2019 17:33
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

Successfully merging this pull request may close these issues.

2 participants