Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from gbbirkisson/auto_key
Browse files Browse the repository at this point in the history
Auto key
  • Loading branch information
gbbirkisson authored Mar 12, 2019
2 parents b0b3104 + d916d77 commit e90c7c4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.idea

*.rock
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 1 addition & 1 deletion kong-plugin-jwt-keycloak-1.0.0-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local pluginName = package:match("^kong%-plugin%-(.+)$") -- "jwt-keycloak"
supported_platforms = {"linux", "macosx"}

source = {
url = "https://github.com/gbbirkisson/kong-plugin-jwt-keycloak",
url = "git://github.com/gbbirkisson/kong-plugin-jwt-keycloak",
tag = "v1.0.0",
}
description = {
Expand Down
16 changes: 14 additions & 2 deletions luarocks.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
FROM kong:1.0 as packer

ENV LUAROCKS_MODULE=kong-plugin-jwt-keycloak

RUN apk add --no-cache git zip && \
git config --global url.https://github.com/.insteadOf git://github.com/ && \
luarocks install ${LUAROCKS_MODULE} && \
luarocks pack ${LUAROCKS_MODULE}

FROM kong:1.0

RUN luarocks install kong-plugin-jwt-keycloak
ENV KONG_PLUGINS="bundled,jwt-keycloak"
ENV KONG_PLUGINS="bundled,jwt-keycloak"

COPY --from=packer kong-plugin-jwt-keycloak* /tmp/
RUN luarocks install /tmp/kong-plugin-jwt-keycloak* &&\
rm /tmp/*

0 comments on commit e90c7c4

Please sign in to comment.