1
1
FROM debian:sid
2
2
3
- LABEL maintainer "fooinha@gmail.com"
3
+ LABEL maintainer = "fooinha@gmail.com"
4
4
5
5
# Build arguments
6
6
ARG DEBIAN_REPO_HOST=httpredir.debian.org
7
- ARG GIT_LOCATION=https://github.com/fooinha/nginx-json-log.git
8
- ARG GIT_BRANCH=master
9
7
10
8
# Mirror to my location
11
9
RUN echo "deb http://${DEBIAN_REPO_HOST}/debian sid main" > /etc/apt/sources.list
@@ -39,7 +37,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-missing \
39
37
libgeoip1 \
40
38
libgeoip-dev \
41
39
libperl-dev \
42
- python \
43
40
mercurial \
44
41
vim \
45
42
bind9-host \
@@ -55,27 +52,24 @@ RUN mkdir -p /build
55
52
56
53
WORKDIR /build
57
54
58
- # Fetches and clones from git location
59
- RUN git clone ${GIT_LOCATION}
60
- RUN cd nginx-json-log && git checkout ${GIT_BRANCH}
61
-
62
55
# Clone from nginx
63
56
RUN hg clone http://hg.nginx.org/nginx
64
57
65
58
WORKDIR /build/nginx
59
+
66
60
# Configure , make and install
67
- RUN ./auto/configure --add-module=/build/nginx-json-log --with-debug --with-http_perl_module --with-http_geoip_module --with-mail --with-stream --with-ld-opt="-Wl,-E"
61
+ # RUN ./auto/configure --add-module=/build/nginx-json-log --with-debug --with-http_perl_module --with-http_geoip_module --with-mail --with-stream --with-ld-opt="-Wl,-E"
68
62
69
- RUN make install
63
+ # RUN make install
70
64
71
65
# Get test framework
72
66
RUN git clone https://github.com/openresty/test-nginx.git
73
67
74
68
# Install test framework and dependencies
75
- RUN cd test-nginx/ && cpanm . && cpanm install JSON
69
+ # RUN cd test-nginx/ && cpanm . && cpanm install JSON
76
70
77
71
# Run exuberant ctags
78
- RUN cd /build/nginx-json-log && ctags -R src/ ../nginx/src/
72
+ # RUN cd /build/nginx-json-log && ctags -R src/ ../nginx/src/
79
73
80
74
# Install files
81
75
COPY nginx.conf /usr/local/nginx/conf/nginx.conf
0 commit comments