mirror of
https://github.com/klutchell/unbound-docker.git
synced 2026-10-14 08:02:42 +00:00
Also avoid overriding the unbound version included with buildroot. Instead we should be bumping the unbound version upstream if required. Signed-off-by: Kyle Harding <kyle@balena.io>
22 lines
555 B
Bash
Executable File
22 lines
555 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
export DOCKER_REPO="${1:-klutchell}/unbound-dnscrypt"
|
|
export BR_VERSION="${2:-2021.02.4}"
|
|
export PACKAGE_VERSION="${3:-1.13.1}"
|
|
|
|
export DOCKER_BUILDKIT=1
|
|
export DOCKER_CLI_EXPERIMENTAL=enabled
|
|
|
|
docker run --rm --privileged multiarch/qemu-user-static:5.2.0-2 --reset -p yes
|
|
|
|
docker buildx build . \
|
|
--pull \
|
|
--platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 \
|
|
--build-arg BR_VERSION \
|
|
--build-arg PACKAGE_VERSION \
|
|
--tag "${DOCKER_REPO}:${PACKAGE_VERSION}" \
|
|
--tag "${DOCKER_REPO}:latest" \
|
|
--push
|