fix the php version, and start locally tagging with the same tags as hub to ease testing w/o unique testing tags

This commit is contained in:
diginc
2016-05-12 16:44:20 -05:00
parent 69887e5366
commit 61968fd77a
2 changed files with 6 additions and 4 deletions

View File

@@ -1,13 +1,15 @@
#!/bin/bash -e
docker build -f alpine.docker -t dockerpihole_alpine .
docker build -f debian.docker -t dockerpihole_debian .
docker build -f alpine.docker -t diginc/pi-hole:alpine .
docker tag diginc/pi-hole:alpine diginc/pi-hole:latest
docker build -f debian.docker -t diginc/pi-hole:debian .
IP=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)
# Alternative ports to not conflict with my real instance
docker run -it --rm --cap-add=NET_ADMIN \
-p 5053:53/tcp \
-p 5053:53/udp \
-p 5080:80 \
-e ServerIP="$IP" \
$@ \
dockerpihole_${image:-alpine}
diginc/pi-hole:${image:-alpine}