Skip to content

Commit

Permalink
update to openidc_v1.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopal committed Jul 27, 2018
1 parent e35c7c3 commit 3e08b9f
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 141 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@ FROM quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.15.0
RUN mkdir /build && cd /build && \
curl -sSL https://github.com/bungle/lua-resty-session/archive/v2.22.tar.gz | tar -zx && \
curl -sSL https://github.com/pintsized/lua-resty-http/archive/v0.12.tar.gz | tar -zx && \
curl -sSL https://github.com/zmartzone/lua-resty-openidc/archive/v1.5.4.tar.gz | tar -zx && \
curl -sSL https://github.com/zmartzone/lua-resty-openidc/archive/v1.6.1.tar.gz | tar -zx && \
curl -sSL https://github.com/SkyLothar/lua-resty-jwt/releases/download/v0.1.11/lua-resty-jwt-0.1.11.tar.gz | tar -zx && \
curl -sSL https://github.com/openresty/lua-resty-redis/archive/v0.26.tar.gz | tar -zx && \
cp -r */lib/resty/* /usr/local/lib/lua/resty/ && \
# hmac.lua兼容openssl 1.1
curl -sSL https://github.com/jkeys089/lua-resty-hmac/raw/master/lib/resty/hmac.lua >/usr/local/lib/lua/resty/hmac.lua && \
curl -sSL 'https://npc.nos-eastchina1.126.net/dl/jq_1.5_linux_amd64.tar.gz' | tar -zx -C /usr/bin && \
curl -sSL 'https://npc.nos-eastchina1.126.net/dl/jwks2pem.tar.gz' | tar -zx -C /usr/bin && \
rm -rf /build && mv /nginx-ingress-controller /nginx-ingress-controller.original

# evp.lua兼容openssl 1.1
ADD evp_openssl11-patch.lua /usr/local/lib/lua/resty/evp.lua
# openidc.lua 支持 id_token 刷新
ADD openidc_v1.5.4-patch.lua /usr/local/lib/lua/resty/openidc.lua
ADD openidc_v1.6.1-patch.lua /usr/local/lib/lua/resty/openidc.lua

ADD nginx_0.15.0.tmpl /etc/nginx/template/nginx.tmpl
ADD nginx-ingress-controller.sh /nginx-ingress-controller
Expand Down
Loading

0 comments on commit 3e08b9f

Please sign in to comment.