mirror of
https://github.com/bastienwirtz/homer.git
synced 2024-12-26 16:48:51 +01:00
Merge pull request #49 from nightah/docker-multiarch-builds
Build multi-arch container with manifest
This commit is contained in:
commit
e6701f57cc
15
Dockerfile.arm32v7
Normal file
15
Dockerfile.arm32v7
Normal file
@ -0,0 +1,15 @@
|
||||
FROM arm32v7/alpine:3.11
|
||||
|
||||
COPY ./ /www/
|
||||
|
||||
ENV USER darkhttpd
|
||||
ENV GROUP darkhttpd
|
||||
ENV GID 911
|
||||
ENV UID 911
|
||||
|
||||
RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
|
||||
apk add -U darkhttpd
|
||||
|
||||
USER darkhttpd
|
||||
|
||||
ENTRYPOINT ["darkhttpd","/www/"]
|
15
Dockerfile.arm64v8
Normal file
15
Dockerfile.arm64v8
Normal file
@ -0,0 +1,15 @@
|
||||
FROM arm64v8/alpine:3.11
|
||||
|
||||
COPY ./ /www/
|
||||
|
||||
ENV USER darkhttpd
|
||||
ENV GROUP darkhttpd
|
||||
ENV GID 911
|
||||
ENV UID 911
|
||||
|
||||
RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
|
||||
apk add -U darkhttpd
|
||||
|
||||
USER darkhttpd
|
||||
|
||||
ENTRYPOINT ["darkhttpd","/www/"]
|
7
hooks/post_push
Normal file
7
hooks/post_push
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker manifest push --purge b4bz/homer:latest
|
||||
docker manifest create b4bz/homer:latest b4bz/homer:latest-amd64 b4bz/homer:latest-arm32v7 b4bz/homer:latest-arm64v8
|
||||
docker manifest annotate b4bz/homer:latest b4bz/homer:latest-arm32v7 --os linux --arch arm
|
||||
docker manifest annotate b4bz/homer:latest b4bz/homer:latest-arm64v8 --os linux --arch arm64 --variant v8
|
||||
docker manifest push --purge b4bz/homer:latest
|
8
hooks/pre_build
Normal file
8
hooks/pre_build
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Update to docker-ee 18.x for manifests
|
||||
apt-get -y update
|
||||
apt-get -y --only-upgrade install docker-ee
|
||||
# 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
|
Loading…
Reference in New Issue
Block a user