mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-24 20:35:42 +00:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user