File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ RUN apt-get update \
57
57
tzdata \
58
58
unzip \
59
59
zlib1g \
60
+ wget \
60
61
&& apt-get clean \
61
62
&& rm -rf /var/lib/apt/lists/* \
62
63
&& rm -rf /var/cache/* /var/log/* /tmp/* /var/lib/dpkg/status-old
@@ -72,6 +73,9 @@ COPY ./scripts/install-lua /tmp/install-lua
72
73
COPY --from=nginxbuilder /tmp/openresty /tmp/openresty
73
74
COPY ./scripts/install-openresty /tmp/install-openresty
74
75
76
+ # Copy crowdsec openresty bouncer install script
77
+ COPY ./scripts/install-crowdsec_openresty_bouncer /tmp/install-crowdsec_openresty_bouncer
78
+
75
79
ARG OPENRESTY_VERSION
76
80
ARG CROWDSEC_OPENRESTY_BOUNCER_VERSION
77
81
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt \
@@ -83,7 +87,8 @@ RUN apt-get update \
83
87
&& apt-get install -y gcc make socat git \
84
88
&& /tmp/install-lua \
85
89
&& /tmp/install-openresty \
86
- && apt-get remove -y make gcc git \
90
+ && /tmp/install-crowdsec_openresty_bouncer \
91
+ && apt-get remove -y make gcc git wget \
87
92
&& apt-get autoremove -y \
88
93
&& apt-get clean \
89
94
&& rm -rf /var/lib/apt/lists/* \
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ cd /tmp
13
13
# weg "https://github.com/crowdsecurity/cs-openresty-bouncer/releases/download/v${CROWDSEC_OPENRESTY_BOUNCER_VERSION}/crowdsec-openresty-bouncer.tgz"
14
14
wget " https://github.com/LePresidente/cs-openresty-bouncer/releases/download/v${CROWDSEC_OPENRESTY_BOUNCER_VERSION} /crowdsec-openresty-bouncer.tgz"
15
15
mkdir -p /tmp/crowdsec
16
- tar - xzf --strip 1 crowdsec-openresty-bouncer.tgz -C /tmp/crowdsec
16
+ tar xzf crowdsec-openresty-bouncer.tgz --strip 1 -C /tmp/crowdsec
17
17
cd /tmp/crowdsec
18
18
19
19
bash ./install.sh --NGINX_CONF_DIR=/etc/nginx/conf.d --LIB_PATH=/etc/nginx/lualib --CONFIG_PATH=/defaults/crowdsec --DATA_PATH=/defaults/crowdsec --docker
20
- sed-patch ' s|ENABLED=.*|ENABLED=false|' /defaults/crowdsec/crowdsec-openresty-bouncer.conf
20
+ sed -i ' s|ENABLED=.*|ENABLED=false|' /defaults/crowdsec/crowdsec-openresty-bouncer.conf
21
21
22
22
echo -e " ${BLUE} ❯ ${GREEN} OpenResty plugins install completed${RESET} "
You can’t perform that action at this time.
0 commit comments