nginx-proxy-manager/local-build.sh

41 lines
1.3 KiB
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
export BLUE='\E[1;34m'
export CYAN='\E[1;36m'
export YELLOW='\E[1;33m'
export GREEN='\E[1;32m'
export RED='\E[1;31m'
export RESET='\E[0m'
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${DIR}"
export DOCKER_IMAGE="baudneo/nginx-proxy-manager"
export MAINTAINER="baudneo <baudneo@protonmail.com>"
export REPO_OWNER="baudneo"
export BASE_TAG='local_bullseye'
export TARGETPLATFORM=amd64
export BUILD_VERSION=dev
export BUILD_COMMIT=
export BUILD_DATE="$(date '+%Y-%m-%d %T %Z')"
export SSL_CERTS_PATH="/etc/ssl/certs/GTS_Root_R1.pem"
# Build FrontEnd
#echo -e "${YELLOW} ${CYAN}Running ${RED}'scripts/frontend-build'${RESET}"
#bash ./scripts/frontend-build
#echo -e "${YELLOW} ${CYAN}Completed ${RED}'frontend-build'${RESET}"
# Build Final Image
echo -e "${BLUE} ${CYAN}Building ${RED}LOCAL ${CYAN}Image [${DOCKER_IMAGE}] with tag: ${YELLOW}${BASE_TAG}${CYAN}...${RESET}"
docker build \
--build-arg BUILD_VERSION="${BUILD_VERSION:-dev}" \
--build-arg BUILD_COMMIT="${BUILD_COMMIT:-notset}" \
--build-arg BUILD_DATE="${BUILD_DATE}" \
--build-arg SSL_CERTS_PATH="${SSL_CERTS_PATH}" \
--build-arg BASE_TAG="${BASE_TAG}" \
-t ${DOCKER_IMAGE}:${BASE_TAG} \
-f docker/Dockerfile \
.
echo -e "${BLUE} ${GREEN}All done!${RESET}"