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

Commit e90c7c4

Browse files
authored
Merge pull request #6 from gbbirkisson/auto_key
Auto key
2 parents b0b3104 + d916d77 commit e90c7c4

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.idea
2-
2+
*.rock
33
# Byte-compiled / optimized / DLL files
44
__pycache__/
55
*.py[cod]

kong-plugin-jwt-keycloak-1.0.0-1.rockspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ local pluginName = package:match("^kong%-plugin%-(.+)$") -- "jwt-keycloak"
99
supported_platforms = {"linux", "macosx"}
1010

1111
source = {
12-
url = "https://github.com/gbbirkisson/kong-plugin-jwt-keycloak",
12+
url = "git://github.com/gbbirkisson/kong-plugin-jwt-keycloak",
1313
tag = "v1.0.0",
1414
}
1515
description = {

luarocks.Dockerfile

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1+
FROM kong:1.0 as packer
2+
3+
ENV LUAROCKS_MODULE=kong-plugin-jwt-keycloak
4+
5+
RUN apk add --no-cache git zip && \
6+
git config --global url.https://github.com/.insteadOf git://github.com/ && \
7+
luarocks install ${LUAROCKS_MODULE} && \
8+
luarocks pack ${LUAROCKS_MODULE}
9+
110
FROM kong:1.0
211

3-
RUN luarocks install kong-plugin-jwt-keycloak
4-
ENV KONG_PLUGINS="bundled,jwt-keycloak"
12+
ENV KONG_PLUGINS="bundled,jwt-keycloak"
13+
14+
COPY --from=packer kong-plugin-jwt-keycloak* /tmp/
15+
RUN luarocks install /tmp/kong-plugin-jwt-keycloak* &&\
16+
rm /tmp/*

0 commit comments

Comments
 (0)