Files
docker-nginx-full/scripts/buildx
T
Jamie Curnow 8da6844b91 Install and build openssl
Updated golang to 1.19.7
2023-03-11 15:37:45 +10:00

37 lines
869 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash -e
BLUE='\E[1;34m'
CYAN='\E[1;36m'
YELLOW='\E[1;33m'
GREEN='\E[1;32m'
RESET='\E[0m'
echo -e "${BLUE} ${CYAN}Building docker multiarch: ${YELLOW}${*}${RESET}"
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${DIR}/.."
# Buildx Builder
docker buildx create --name "${BUILDX_NAME:-nginx-full}" || echo
docker buildx use "${BUILDX_NAME:-nginx-full}"
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/7 \
--progress plain \
--pull \
--no-cache \
--build-arg BASE_TAG \
--build-arg ACMESH_BASE_TAG \
--build-arg CERTBOT_BASE_TAG \
--build-arg OPENRESTY_VERSION \
--build-arg LUA_VERSION \
--build-arg LUAROCKS_VERSION \
--build-arg CROWDSEC_OPENRESTY_BOUNCER_VERSION \
--build-arg OPENSSL_VERSION \
$@ \
.
docker buildx rm "${BUILDX_NAME:-nginx-full}"
echo -e "${BLUE} ${GREEN}Multiarch build Complete${RESET}"