adding armhf build for testing

This commit is contained in:
diginc 2016-08-30 20:07:32 -05:00
parent 7dc0250a37
commit 0204786139
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,8 @@
FROM resin/armv7hf-debian:jessie
FROM jsurf/rpi-raspbian
MAINTAINER adam@diginc.us <adam@diginc.us>
RUN [ "cross-build-start" ]
# Requirements
RUN apt-get -q update && \
apt-get install -y \
@ -58,3 +60,5 @@ EXPOSE 80
ENTRYPOINT ["/bash", "-c"]
CMD /start.sh
RUN [ "cross-build-end" ]

View File

@ -9,6 +9,7 @@ run_local = testinfra.get_backend(
@pytest.mark.parametrize("image,tag", [
( 'alpine.docker', 'diginc/pi-hole:alpine' ),
( 'debian.docker', 'diginc/pi-hole:debian' ),
( 'debian-armhf.docker', 'diginc/pi-hole-armhf:debian' ),
])
def test_build_pihole_image(image, tag):
build_cmd = run_local('docker build -f {} -t {} .'.format(image, tag))