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 \
19
19
openssl unzip \
20
20
wget \
21
21
zlib1g-dev \
22
- git
22
+ git \
23
+ libmaxminddb-dev
23
24
24
25
# Lua build
25
26
COPY ./scripts/build-lua /tmp/build-lua
Original file line number Diff line number Diff line change @@ -6,12 +6,14 @@ YELLOW='\E[1;33m'
6
6
GREEN=' \E[1;32m'
7
7
RESET=' \E[0m'
8
8
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} "
10
10
11
11
cd /tmp
12
12
wget " https://openresty.org/download/openresty-${OPENRESTY_VERSION} .tar.gz"
13
13
tar -xzf openresty-${OPENRESTY_VERSION} .tar.gz
14
14
mv /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
15
17
cd /tmp/openresty
16
18
17
19
./configure \
@@ -52,7 +54,8 @@ cd /tmp/openresty
52
54
--with-stream \
53
55
--with-stream_realip_module \
54
56
--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
56
59
57
60
make -j2
58
61
You can’t perform that action at this time.
0 commit comments