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 \
5757 tzdata \
5858 unzip \
5959 zlib1g \
60+ wget \
6061 && apt-get clean \
6162 && rm -rf /var/lib/apt/lists/* \
6263 && rm -rf /var/cache/* /var/log/* /tmp/* /var/lib/dpkg/status-old
@@ -72,6 +73,9 @@ COPY ./scripts/install-lua /tmp/install-lua
7273COPY --from=nginxbuilder /tmp/openresty /tmp/openresty
7374COPY ./scripts/install-openresty /tmp/install-openresty
7475
76+ # Copy crowdsec openresty bouncer install script
77+ COPY ./scripts/install-crowdsec_openresty_bouncer /tmp/install-crowdsec_openresty_bouncer
78+
7579ARG OPENRESTY_VERSION
7680ARG CROWDSEC_OPENRESTY_BOUNCER_VERSION
7781ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt \
@@ -83,7 +87,8 @@ RUN apt-get update \
8387 && apt-get install -y gcc make socat git \
8488 && /tmp/install-lua \
8589 && /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 \
8792 && apt-get autoremove -y \
8893 && apt-get clean \
8994 && rm -rf /var/lib/apt/lists/* \
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ cd /tmp
1313# weg "https://github.com/crowdsecurity/cs-openresty-bouncer/releases/download/v${CROWDSEC_OPENRESTY_BOUNCER_VERSION}/crowdsec-openresty-bouncer.tgz"
1414wget " https://github.com/LePresidente/cs-openresty-bouncer/releases/download/v${CROWDSEC_OPENRESTY_BOUNCER_VERSION} /crowdsec-openresty-bouncer.tgz"
1515mkdir -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
1717cd /tmp/crowdsec
1818
1919bash ./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
2121
2222echo -e " ${BLUE} ❯ ${GREEN} OpenResty plugins install completed${RESET} "
You can’t perform that action at this time.
0 commit comments