Files
Jamie Curnow dd72bc45b1 Major updates
- OpenResty v1.29.2.4
  Using the github tag since this fixes a fresh CVE-2026-42945
- Updated base debian image to trixie
- Lua v5.5.0
- Luarocks v3.13.0
- Removed unused install script for Crowsec
2026-05-18 10:55:26 +10:00

86 lines
2.0 KiB
Bash
Executable File
Raw Permalink 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'
DOCKER_IMAGE="${REGISTRY:-}nginxproxymanager/nginx-full"
PLATFORMS=linux/amd64,linux/arm64
export OPENRESTY_VERSION=1.29.2.4
export LUA_VERSION=5.5.0
export LUAROCKS_VERSION=3.13.0
export BASE_IMAGE="${DOCKER_IMAGE}:latest"
export ACMESH_IMAGE="${DOCKER_IMAGE}:acmesh"
export CERTBOT_IMAGE="${DOCKER_IMAGE}:certbot"
export CERTBOT_NODE_IMAGE="${DOCKER_IMAGE}:certbot-node"
export ACMESH_GOLANG_IMAGE="${DOCKER_IMAGE}:acmesh-golang"
# Setup
docker buildx rm "${BUILDX_NAME:-nginx-full}" || echo
docker buildx create --name "${BUILDX_NAME:-nginx-full}" || echo
docker buildx use "${BUILDX_NAME:-nginx-full}"
# Builds
echo -e "${BLUE} ${CYAN}Building ${YELLOW}latest ${CYAN}...${RESET}"
docker buildx build \
--platform "$PLATFORMS" \
--progress plain \
--pull \
--push \
--build-arg OPENRESTY_VERSION \
--build-arg LUA_VERSION \
--build-arg LUAROCKS_VERSION \
-t "$BASE_IMAGE" \
-f docker/Dockerfile \
.
echo -e "${BLUE} ${CYAN}Building ${YELLOW}acmesh ${CYAN}...${RESET}"
docker buildx build \
--platform "$PLATFORMS" \
--progress plain \
--push \
--build-arg BASE_IMAGE \
-t "$ACMESH_IMAGE" \
-f docker/Dockerfile.acmesh \
.
echo -e "${BLUE} ${CYAN}Building ${YELLOW}certbot ${CYAN}...${RESET}"
docker buildx build \
--platform "$PLATFORMS" \
--progress plain \
--push \
--build-arg BASE_IMAGE \
-t "$CERTBOT_IMAGE" \
-f docker/Dockerfile.certbot \
.
echo -e "${BLUE} ${CYAN}Building ${YELLOW}acmesh-golang ${CYAN}...${RESET}"
docker buildx build \
--platform "$PLATFORMS" \
--progress plain \
--push \
--build-arg ACMESH_IMAGE \
-t "$ACMESH_GOLANG_IMAGE" \
-f docker/Dockerfile.acmesh-golang \
.
echo -e "${BLUE} ${CYAN}Building ${YELLOW}certbot-node ${CYAN}...${RESET}"
docker buildx build \
--platform "$PLATFORMS" \
--progress plain \
--push \
--build-arg CERTBOT_IMAGE \
-t "$CERTBOT_NODE_IMAGE" \
-f docker/Dockerfile.certbot-node \
.
docker buildx rm "${BUILDX_NAME:-nginx-full}"
echo -e "${BLUE} ${GREEN}All done!${RESET}"