Skip to content

Commit 3847e98

Browse files
committed
Revert "Install and build openssl"
This reverts commit 8da6844.
1 parent 8da6844 commit 3847e98

File tree

9 files changed

+68
-102
lines changed

9 files changed

+68
-102
lines changed

.jenkins/Jenkinsfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pipeline {
1919
CROWDSEC_OPENRESTY_BOUNCER_VERSION = '0.1.7'
2020
LUA_VERSION = '5.1.5'
2121
LUAROCKS_VERSION = '3.3.1'
22-
OPENSSL_VERSION = '1.1.1t'
2322
}
2423
stages {
2524
stage('Environment') {

docker/Dockerfile

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
# Nginx Builder
33
#############
44

5-
FROM debian:bullseye-slim as nginxbuilder
5+
FROM debian:buster-slim as nginxbuilder
66

77
ARG OPENRESTY_VERSION
88
ARG LUA_VERSION
99
ARG LUAROCKS_VERSION
10-
ARG OPENSSL_VERSION
1110

1211
RUN apt-get update \
1312
&& apt-get install -y \
@@ -17,7 +16,7 @@ RUN apt-get update \
1716
libpcre3-dev \
1817
libreadline-dev \
1918
libssl-dev \
20-
unzip \
19+
openssl unzip \
2120
wget \
2221
zlib1g-dev \
2322
git
@@ -26,23 +25,21 @@ RUN apt-get update \
2625
COPY ./scripts/build-lua /tmp/build-lua
2726
RUN /tmp/build-lua
2827

29-
# Build packages
30-
COPY ./scripts/install-openssl /tmp/install-openssl
31-
RUN /tmp/install-openssl
28+
# Nginx build
3229
COPY ./scripts/build-openresty /tmp/build-openresty
3330
RUN /tmp/build-openresty
3431

3532
#############
3633
# Final Image
3734
#############
3835

39-
FROM debian:bullseye-slim
36+
FROM debian:buster-slim
4037
LABEL maintainer="Jamie Curnow <[email protected]>"
4138

4239
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
4340

4441
ARG TARGETPLATFORM
45-
RUN echo "Base: debian:bullseye-slim, ${TARGETPLATFORM:-linux/amd64}" > /built-for-arch
42+
RUN echo "Base: debian:buster-slim, ${TARGETPLATFORM:-linux/amd64}" > /built-for-arch
4643

4744
# OpenResty uses LuaJIT which has a dependency on GCC
4845
RUN apt-get update \
@@ -51,13 +48,11 @@ RUN apt-get update \
5148
ca-certificates \
5249
curl \
5350
figlet \
54-
gcc \
5551
jq \
5652
libncurses6 \
5753
libpcre3 \
58-
libreadline8 \
59-
libc6-dev \
60-
make \
54+
libreadline7 \
55+
openssl \
6156
perl \
6257
tzdata \
6358
unzip \
@@ -71,11 +66,6 @@ RUN apt-get update \
7166

7267
COPY ./files/.bashrc /root/.bashrc
7368

74-
# build and install openssl
75-
ARG OPENSSL_VERSION
76-
COPY ./scripts/install-openssl /tmp/install-openssl
77-
RUN /tmp/install-openssl
78-
7969
# Copy lua and luarocks builds from first image
8070
COPY --from=nginxbuilder /tmp/lua /tmp/lua
8171
COPY --from=nginxbuilder /tmp/luarocks /tmp/luarocks
@@ -90,17 +80,16 @@ COPY ./scripts/install-crowdsec_openresty_bouncer /tmp/install-crowdsec_openrest
9080

9181
ARG OPENRESTY_VERSION
9282
ARG CROWDSEC_OPENRESTY_BOUNCER_VERSION
93-
9483
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt \
9584
OPENRESTY_VERSION=${OPENRESTY_VERSION} \
96-
OPENSSL_VERSION=${OPENSSL_VERSION} \
9785
CROWDSEC_OPENRESTY_BOUNCER_VERSION=${CROWDSEC_OPENRESTY_BOUNCER_VERSION}
9886

9987
# Install openresty, lua, then clean up file system
10088
RUN apt-get update \
89+
&& apt-get install -y gcc make socat git \
10190
&& /tmp/install-lua \
10291
&& /tmp/install-openresty \
103-
&& apt-get remove -y make gcc git wget gettext libc6-dev \
92+
&& apt-get remove -y make gcc git wget gettext \
10493
&& apt-get autoremove -y \
10594
&& apt-get clean \
10695
&& rm -rf /var/lib/apt/lists/* \

docker/Dockerfile.acmesh-golang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.19.7 as go
1+
FROM golang:1.19.6 as go
22
FROM nginxproxymanager/nginx-full:${ACMESH_BASE_TAG:-acmesh}
33
LABEL maintainer="Jamie Curnow <[email protected]>"
44

docker/Dockerfile.certbot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Certbot Builder
33
#############
44

5-
FROM debian:bullseye-slim as certbotbuilder
5+
FROM debian:buster-slim as certbotbuilder
66

77
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
88

local-build.sh

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/bin/bash -e
2+
3+
BLUE='\E[1;34m'
4+
CYAN='\E[1;36m'
5+
YELLOW='\E[1;33m'
6+
GREEN='\E[1;32m'
7+
RESET='\E[0m'
8+
9+
DOCKER_IMAGE=nginxproxymanager/nginx-full
10+
11+
export OPENRESTY_VERSION=1.21.4.1
12+
export CROWDSEC_OPENRESTY_BOUNCER_VERSION=0.1.7
13+
export LUA_VERSION=5.1.5
14+
export LUAROCKS_VERSION=3.3.1
15+
16+
# Builds
17+
18+
echo -e "${BLUE}${CYAN}Building ${YELLOW}latest ${CYAN}...${RESET}"
19+
docker build \
20+
--pull \
21+
--build-arg OPENRESTY_VERSION \
22+
--build-arg CROWDSEC_OPENRESTY_BOUNCER_VERSION \
23+
--build-arg LUA_VERSION \
24+
--build-arg LUAROCKS_VERSION \
25+
-t ${DOCKER_IMAGE}:latest \
26+
-f docker/Dockerfile \
27+
.
28+
29+
echo -e "${BLUE}${CYAN}Building ${YELLOW}acmesh ${CYAN}...${RESET}"
30+
docker build \
31+
--build-arg BASE_TAG=latest \
32+
-t ${DOCKER_IMAGE}:acmesh \
33+
-f docker/Dockerfile.acmesh \
34+
.
35+
36+
echo -e "${BLUE}${CYAN}Building ${YELLOW}certbot ${CYAN}...${RESET}"
37+
docker build \
38+
--build-arg BASE_TAG=latest \
39+
-t ${DOCKER_IMAGE}:certbot \
40+
-f docker/Dockerfile.certbot \
41+
.
42+
43+
echo -e "${BLUE}${CYAN}Building ${YELLOW}acmesh-golang ${CYAN}...${RESET}"
44+
docker build \
45+
--build-arg BASE_TAG=acmesh \
46+
-t ${DOCKER_IMAGE}:acmesh-golang \
47+
-f docker/Dockerfile.acmesh-golang \
48+
.
49+
50+
echo -e "${BLUE}${CYAN}Building ${YELLOW}certbot-node ${CYAN}...${RESET}"
51+
docker build \
52+
--build-arg BASE_TAG=certbot \
53+
-t ${DOCKER_IMAGE}:certbot-node \
54+
-f docker/Dockerfile.certbot-node \
55+
.
56+
57+
echo -e "${BLUE}${GREEN}All done!${RESET}"

scripts/buildx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@ docker buildx build \
1919
--platform linux/amd64,linux/arm64,linux/arm/7 \
2020
--progress plain \
2121
--pull \
22-
--no-cache \
2322
--build-arg BASE_TAG \
2423
--build-arg ACMESH_BASE_TAG \
2524
--build-arg CERTBOT_BASE_TAG \
2625
--build-arg OPENRESTY_VERSION \
2726
--build-arg LUA_VERSION \
2827
--build-arg LUAROCKS_VERSION \
2928
--build-arg CROWDSEC_OPENRESTY_BOUNCER_VERSION \
30-
--build-arg OPENSSL_VERSION \
3129
$@ \
3230
.
3331

scripts/install-openssl

Lines changed: 0 additions & 35 deletions
This file was deleted.

scripts/localbuild

Lines changed: 0 additions & 28 deletions
This file was deleted.

scripts/localbuildx

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)