Skip to content

Commit

Permalink
Upgrade Lua dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Kristian Flaatten committed Sep 5, 2018
1 parent 4017564 commit b60e41c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@ FROM openresty/openresty:1.11.2.5-alpine
MAINTAINER Hans Kristian Flaatten <hans.flaatten@evry.com>

ENV \
SESSION_VERSION=2.19 \
SESSION_VERSION=2.22 \
HTTP_VERSION=0.12 \
OPENIDC_VERSION=1.5.3 \
JWT_VERSION=0.1.11
OPENIDC_VERSION=1.6.1 \
JWT_VERSION=0.2.0 \
HMAC_VERSION=989f601acbe74dee71c1a48f3e140a427f2d03ae

RUN \
apk update && apk upgrade && apk add curl && \
cd /tmp && \
curl -sSL https://github.com/bungle/lua-resty-session/archive/v${SESSION_VERSION}.tar.gz | tar xz && \
curl -sSL https://github.com/pintsized/lua-resty-http/archive/v${HTTP_VERSION}.tar.gz | tar xz && \
curl -sSL https://github.com/pingidentity/lua-resty-openidc/archive/v${OPENIDC_VERSION}.tar.gz | tar xz && \
curl -sSL https://github.com/SkyLothar/lua-resty-jwt/releases/download/v${JWT_VERSION}/lua-resty-jwt-${JWT_VERSION}.tar.gz | tar xz && \
curl -sSL https://github.com/cdbattags/lua-resty-jwt/archive/v${JWT_VERSION}.tar.gz | tar xz && \
curl -sSL https://github.com/jkeys089/lua-resty-hmac/archive/${HMAC_VERSION}.tar.gz | tar xz && \
cp -r /tmp/lua-resty-session-${SESSION_VERSION}/lib/resty/* /usr/local/openresty/lualib/resty/ && \
cp -r /tmp/lua-resty-http-${HTTP_VERSION}/lib/resty/* /usr/local/openresty/lualib/resty/ && \
cp -r /tmp/lua-resty-openidc-${OPENIDC_VERSION}/lib/resty/* /usr/local/openresty/lualib/resty/ && \
cp -r /tmp/lua-resty-jwt-${JWT_VERSION}/lib/resty/* /usr/local/openresty/lualib/resty/ && \
cp -r /tmp/lua-resty-hmac-${HMAC_VERSION}/lib/resty/* /usr/local/openresty/lualib/resty/ && \
rm -rf /tmp/* && \
mkdir -p /usr/local/openresty/nginx/conf/hostsites/ && \
true
Expand Down

0 comments on commit b60e41c

Please sign in to comment.