File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ RUN apt-get update \
1919 openssl unzip \
2020 wget \
2121 zlib1g-dev \
22- git
22+ git \
23+ libmaxminddb-dev
2324
2425# Lua build
2526COPY ./scripts/build-lua /tmp/build-lua
Original file line number Diff line number Diff line change @@ -6,12 +6,14 @@ YELLOW='\E[1;33m'
66GREEN=' \E[1;32m'
77RESET=' \E[0m'
88
9- echo -e " ${BLUE} ❯ ${CYAN} Building OpenResty ${YELLOW}${OPENRESTY_VERSION} ...${RESET} "
9+ echo -e " ${BLUE} ❯ ${CYAN} Building OpenResty ${YELLOW}${OPENRESTY_VERSION} with nginx_http_geoip2 module ...${RESET} "
1010
1111cd /tmp
1212wget " https://openresty.org/download/openresty-${OPENRESTY_VERSION} .tar.gz"
1313tar -xzf openresty-${OPENRESTY_VERSION} .tar.gz
1414mv /tmp/openresty-${OPENRESTY_VERSION} /tmp/openresty
15+ git clone https://github.com/leev/ngx_http_geoip2_module.git
16+ mv /tmp/ngx_http_geoip2_module /tmp/openresty/ngx_http_geoip2_module
1517cd /tmp/openresty
1618
1719./configure \
@@ -52,7 +54,8 @@ cd /tmp/openresty
5254 --with-stream \
5355 --with-stream_realip_module \
5456 --with-stream_ssl_module \
55- --with-stream_ssl_preread_module
57+ --with-stream_ssl_preread_module \
58+ --add-dynamic-module=/tmp/openresty/ngx_http_geoip2_module
5659
5760make -j2
5861
You can’t perform that action at this time.
0 commit comments