Skip to content

Commit

Permalink
Merge pull request #11 from dragonchaser/add_arm_for_autobuild
Browse files Browse the repository at this point in the history
add arm dockerfile for dockerhub autobuild
  • Loading branch information
dragonchaser authored Oct 12, 2020
2 parents 8ed87eb + eb58a96 commit 9f0f8e6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ruby:latest

LABEL maintainer="dragonchaser <[email protected]>"
EXPOSE 4567
RUN git clone https://github.com/dragonchaser/maptool /maptool
Expand Down
8 changes: 8 additions & 0 deletions docker/Dockerfile.arm23v7
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ruby:latest
COPY qemu-arm-static /usr/bin
LABEL maintainer="dragonchaser <[email protected]>"
EXPOSE 4567
RUN git clone https://github.com/dragonchaser/maptool /maptool
WORKDIR /maptool
RUN bundle install
CMD ["ruby", "app.rb"]
2 changes: 2 additions & 0 deletions docker/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 . && pwd && ls
4 changes: 4 additions & 0 deletions docker/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

0 comments on commit 9f0f8e6

Please sign in to comment.