@@ -13,24 +13,14 @@ RUN yum -y update && \
13
13
yum -y install pcre-devel pcre zlib-devel openssl-devel wget cmake check-devel check && \
14
14
yum -y install nginx-$NGINX_VERSION
15
15
16
- ARG JANSSON_VERSION=2.10
17
- ARG LIBJWT_VERSION=1.8.0
18
- ARG TESLA_REPO_NAME=ngx-http-auth-jwt-module
19
-
20
16
# for compiling for rh-nginx110
21
17
# yum -y install libxml2 libxslt libxml2-devel libxslt-devel gd gd-devel perl-ExtUtils-Embed
22
18
23
19
RUN mkdir -p /root/dl
24
20
WORKDIR /root/dl
25
21
26
- # get our JWT module
27
- # change this to get a specific version?
28
- ADD https://github.com/TeslaGov/$TESLA_REPO_NAME/archive/joefitz/match-rh-nginx110-version.zip .
29
- RUN unzip match-rh-nginx110-version.zip && \
30
- rm match-rh-nginx110-version.zip && \
31
- ln -sf $TESLA_REPO_NAME-joefitz-match-rh-nginx110-version $TESLA_REPO_NAME
32
-
33
22
# build jansson
23
+ ARG JANSSON_VERSION=2.10
34
24
RUN wget https://github.com/akheron/jansson/archive/v$JANSSON_VERSION.zip && \
35
25
unzip v$JANSSON_VERSION.zip && \
36
26
rm v$JANSSON_VERSION.zip && \
@@ -42,6 +32,7 @@ RUN wget https://github.com/akheron/jansson/archive/v$JANSSON_VERSION.zip && \
42
32
make install
43
33
44
34
# build libjwt
35
+ ARG LIBJWT_VERSION=1.8.0
45
36
RUN wget https://github.com/benmcollins/libjwt/archive/v$LIBJWT_VERSION.zip && \
46
37
unzip v$LIBJWT_VERSION.zip && \
47
38
rm v$LIBJWT_VERSION.zip && \
@@ -52,6 +43,19 @@ RUN wget https://github.com/benmcollins/libjwt/archive/v$LIBJWT_VERSION.zip && \
52
43
make all && \
53
44
make install
54
45
46
+ # get our JWT module
47
+ # change this to get a specific version?
48
+ ARG TESLA_REPO_NAME=ngx-http-auth-jwt-module
49
+ # this value should end with a trailing slash (or be blank)
50
+ ARG TESLA_REPO_URL_PREFIX=joefitz/
51
+ # this value should end with a trailing dash (or be blank)
52
+ ARG TESLA_REPO_FILE_PREFIX=joefitz-
53
+ ARG TESLA_REPO_FILENAME=match-rh-nginx110-version
54
+ ADD https://github.com/TeslaGov/$TESLA_REPO_NAME/archive/${TESLA_REPO_URL_PREFIX}${TESLA_REPO_FILENAME}.zip .
55
+ RUN unzip ${TESLA_REPO_FILENAME}.zip && \
56
+ rm ${TESLA_REPO_FILENAME}.zip && \
57
+ ln -sf ${TESLA_REPO_NAME}-${TESLA_REPO_FILE_PREFIX}${TESLA_REPO_FILENAME} ${TESLA_REPO_NAME}
58
+
55
59
# after 1.11.5 use this command
56
60
# ./configure --with-compat --add-dynamic-module=../ngx-http-auth-jwt-module --with-cc-opt='-std=gnu99'
57
61
# build nginx module against nginx sources
0 commit comments