1
0

Update doc

This commit is contained in:
nicolas.dorier
2020-02-28 16:13:03 +09:00
parent 248251ba2a
commit bf436a81e3
3 changed files with 11 additions and 11 deletions

View File

@@ -234,6 +234,7 @@ namespace DockerFileBuildHelper
{
case "pihole":
dockerInfo.GitLink = "https://github.com/pi-hole/docker-pi-hole";
dockerInfo.DockerFilePath = $"Dockerfile_amd64";
dockerInfo.DockerFilePathARM32v7 = $"Dockerfile_armhf";
dockerInfo.DockerFilePathARM64v8 = $"Dockerfile_arm64";
dockerInfo.GitRef = $"{image.Tag}";

View File

@@ -612,20 +612,19 @@ cd - && cd ..
# Build pihole
DOCKERFILE=""
# https://raw.githubusercontent.com/pi-hole/docker-pi-hole/v4.4/Dockerfile_amd64
DOCKERFILE="Dockerfile_amd64"
# https://raw.githubusercontent.com/pi-hole/docker-pi-hole/v4.4/Dockerfile_armhf
[[ "$(uname -m)" == "armv7l" ]] && DOCKERFILE="Dockerfile_armhf"
# https://raw.githubusercontent.com/pi-hole/docker-pi-hole/v4.4/Dockerfile_arm64
[[ "$(uname -m)" == "aarch64" ]] && DOCKERFILE="Dockerfile_arm64"
if [[ "$DOCKERFILE" ]]; then
echo "Building pihole/pihole:v4.4"
git clone https://github.com/pi-hole/docker-pi-hole pihole
cd pihole
git checkout v4.4
cd "$(dirname $DOCKERFILE)"
docker build -f "$DOCKERFILE" -t "pihole/pihole:v4.4" .
cd - && cd ..
fi
echo "Building pihole/pihole:v4.4"
git clone https://github.com/pi-hole/docker-pi-hole pihole
cd pihole
git checkout v4.4
cd "$(dirname $DOCKERFILE)"
docker build -f "$DOCKERFILE" -t "pihole/pihole:v4.4" .
cd - && cd ..
# Build docker-gen