Skip to content

Commit c935714

Browse files
committed
Upgrade to bullseye
1 parent 361dfe6 commit c935714

File tree

6 files changed

+35
-31
lines changed

6 files changed

+35
-31
lines changed

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# This file assumes that the frontend has been built using ./scripts/frontend-build
55

6-
FROM baudneo/nginx-full:certbot-node
6+
FROM baudneo/nginx-full:bullseye-certbot-node
77

88
ARG TARGETPLATFORM
99
ARG BUILD_VERSION
@@ -72,4 +72,4 @@ LABEL org.label-schema.schema-version="1.0" \
7272
org.label-schema.description="Docker container for managing Nginx proxy hosts with a simple, powerful interface " \
7373
org.label-schema.url="https://github.com/baudneo/nginx-proxy-manager" \
7474
org.label-schema.vcs-url="https://github.com/baudneo/nginx-proxy-manager.git" \
75-
org.label-schema.cmd="docker run --rm -ti baudneo/nginx-proxy-manager:${BASE_TAG:-latest}"
75+
org.label-schema.cmd="docker run --rm -ti baudneo/nginx-proxy-manager:${BASE_TAG:-bullseye}"

docker/rootfs/etc/cont-init.d/97_modsecurity.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ fi
3434
# Can disable this (default) and add the modsec directives in each ___location block
3535
if [ "${MODSEC_ENABLE}" == "1" ] || [ "${MODSEC_ENABLE}" -eq 1 ]; then
3636
log "Enabling modsecurity in server block of port 80 and 443"
37-
sed-patch "s|#<MODSEC_ON>|modsecurity on;|g" /etc/nginx/conf.d/default.conf
38-
sed-patch "s|#<MODSEC_RULES>|modsecurity_rules_file /etc/nginx/modsec/main.conf;|g" /etc/nginx/conf.d/default.conf
37+
sed -i "s|#<MODSEC_ON>|modsecurity on;|g" /etc/nginx/conf.d/default.conf
38+
sed -i "s|#<MODSEC_RULES>|modsecurity_rules_file /etc/nginx/modsec/main.conf;|g" /etc/nginx/conf.d/default.conf
3939
fi
4040
# Enabled modsecurity in the server block of :81 (admin dashboard)
4141
if [ "${MODSEC_ADMIN_PANEL}" == "1" ] || [ "${MODSEC_ADMIN_PANEL}" -eq 1 ]; then
4242
log "Enabling modsecurity in server block of admin dashboard port 81"
43-
sed-patch "s|#<MODSEC_ON>|modsecurity on;|g" /etc/nginx/conf.d/production.conf
44-
sed-patch "s|#<MODSEC_RULES>|modsecurity_rules_file /etc/nginx/modsec/main.conf;|g" /etc/nginx/conf.d/production.conf
43+
sed -i "s|#<MODSEC_ON>|modsecurity on;|g" /etc/nginx/conf.d/production.conf
44+
sed -i "s|#<MODSEC_RULES>|modsecurity_rules_file /etc/nginx/modsec/main.conf;|g" /etc/nginx/conf.d/production.conf
4545

4646
fi

local-build.sh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
#!/bin/bash -e
22

3-
BLUE='\E[1;34m'
4-
CYAN='\E[1;36m'
5-
YELLOW='\E[1;33m'
6-
GREEN='\E[1;32m'
7-
RED='\E[1;31m'
8-
RESET='\E[0m'
3+
export BLUE='\E[1;34m'
4+
export CYAN='\E[1;36m'
5+
export YELLOW='\E[1;33m'
6+
export GREEN='\E[1;32m'
7+
export RED='\E[1;31m'
8+
export RESET='\E[0m'
99

1010
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1111
cd "${DIR}"
12-
export DOCKER_IMAGE=baudneo/nginx-proxy-manager
12+
export DOCKER_IMAGE="baudneo/nginx-proxy-manager"
1313
export MAINTAINER="baudneo <[email protected]>"
1414
export REPO_OWNER="baudneo"
15-
export BASE_TAG='local_latest'
15+
export BASE_TAG='local_bullseye'
1616

1717
export TARGETPLATFORM=amd64
1818
export BUILD_VERSION=dev
1919
export BUILD_COMMIT=
2020
export BUILD_DATE="$(date '+%Y-%m-%d %T %Z')"
2121
export SSL_CERTS_PATH="/etc/ssl/certs/GTS_Root_R1.pem"
22-
#echo -e "${YELLOW}❯❯❯ ${CYAN}Running ${RED}'scripts/frontend-build'${RESET}"
23-
#bash ./scripts/frontend-build
22+
echo -e "${YELLOW}❯❯❯ ${CYAN}Running ${RED}'scripts/frontend-build'${RESET}"
23+
bash ./scripts/frontend-build
24+
echo -e "${YELLOW}❯❯❯ ${CYAN}Completed ${RED}'frontend-build'${RESET}"
2425
# Build
25-
echo -e "${BLUE}${CYAN}Building Image [${DOCKER_IMAGE}] with tag: ${YELLOW}${BASE_TAG}${CYAN}...${RESET}"
26+
echo -e "${BLUE}${CYAN}Building ${RED}LOCAL ${CYAN}Image [${DOCKER_IMAGE}] with tag: ${YELLOW}${BASE_TAG}${CYAN}...${RESET}"
2627
docker build \
2728
\
2829
--build-arg BUILD_VERSION="${BUILD_VERSION:-dev}" \

scripts/.common.sh

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
#!/bin/bash
22

33
# Colors
4-
BLUE='\E[1;34m'
5-
CYAN='\E[1;36m'
6-
GREEN='\E[1;32m'
7-
RED='\E[1;31m'
8-
RESET='\E[0m'
9-
YELLOW='\E[1;33m'
10-
11-
export BLUE CYAN GREEN RED RESET YELLOW
4+
export BLUE='\E[1;34m'
5+
export CYAN='\E[1;36m'
6+
export GREEN='\E[1;32m'
7+
export RED='\E[1;31m'
8+
export RESET='\E[0m'
9+
export YELLOW='\E[1;33m'
1210

1311
# Docker Compose
14-
COMPOSE_PROJECT_NAME="npmdev"
15-
COMPOSE_FILE="docker/docker-compose.dev.yml"
16-
17-
export COMPOSE_FILE COMPOSE_PROJECT_NAME
12+
export COMPOSE_PROJECT_NAME="npmdev"
13+
export COMPOSE_FILE="docker/docker-compose.dev.yml"

scripts/build_common.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export BLUE='\E[1;34m'
2+
export CYAN='\E[1;36m'
3+
export GREEN='\E[1;32m'
4+
export RED='\E[1;31m'
5+
export RESET='\E[0m'
6+
export YELLOW='\E[1;33m'
7+

scripts/frontend-build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
44
. "$DIR/.common.sh"
55

6-
DOCKER_IMAGE='baudneo/nginx-full:certbot-node'
6+
DOCKER_IMAGE='baudneo/nginx-full:bullseye-certbot-node'
77

88
# Ensure docker exists
99
if hash docker 2>/dev/null; then
1010

11-
docker pull "${DOCKER_IMAGE}"
11+
# docker pull "${DOCKER_IMAGE}"
1212
cd "${DIR}/.."
1313
echo -e "${BLUE}${CYAN}Building Frontend ...${RESET}"
1414
docker run --rm -e CI=true -v "$(pwd)/frontend:/app/frontend" -v "$(pwd)/global:/app/global" \

0 commit comments

Comments
 (0)