Skip to content

Commit

Permalink
Add hooks for arm automated builds on Dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-kotikov committed May 8, 2019
1 parent d238a04 commit a4d60d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hooks/post_checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static .
4 changes: 4 additions & 0 deletions hooks/pre_build
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
# Register qemu-*-static for all supported processors except the
# current one, but also remove all registered binfmt_misc before
docker run --rm --privileged multiarch/qemu-user-static:register --reset

4 comments on commit a4d60d1

@ModischFabrications
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, quick question as I saw your link in the issue:
Does this actually work for you? I took the same route, Docker logs seemed to indicate everything works as intended but I was unable to checkout my images on a Raspberry Pi.

@vladimir-kotikov
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey. Yes, everything seem to be working as expected - docker pull vlkoti/raspberrypi3-homeassistant && docker-compose up -d on Raspberry does the job of updating my home-assistant setup pretty well

@ModischFabrications
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your feedback, I appreciate it.

Damn this is frustrating, I have the same hooks as you but my project (cutsolver) isn't working, exec format error every time. Logs actually show that qemu is registered but no arm image is available. Did you do something special to Docker Hub, uploading a manifest file or something?

@vladimir-kotikov
Copy link
Owner Author

@vladimir-kotikov vladimir-kotikov commented on a4d60d1 May 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you do something special to Docker Hub, uploading a manifest file or something?

Nope, at least I can't remember anything

Please sign in to comment.