add hooks and dockerfiles

add hooks and dockerfiles
This commit is contained in:
Brian Martin 2019-12-31 14:11:22 -05:00
parent 2f331ae440
commit 4f820ebce8
6 changed files with 109 additions and 0 deletions

9
hooks/post_push Normal file
View file

@ -0,0 +1,9 @@
#!/bin/bash
# Use manifest-tool to create the manifest, given the experimental
# "docker manifest" command isn't available yet on Docker Hub.
curl -Lo manifest-tool https://github.com/estesp/manifest-tool/releases/download/v1.0.0/manifest-tool-linux-amd64
chmod +x manifest-tool
./manifest-tool push from-spec multi-arch-manifest.yaml

5
hooks/pre_build Normal file
View file

@ -0,0 +1,5 @@
#!/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