Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I install it ? #13

Open
nguyenhungbk96 opened this issue Mar 11, 2021 · 1 comment
Open

How can I install it ? #13

nguyenhungbk96 opened this issue Mar 11, 2021 · 1 comment

Comments

@nguyenhungbk96
Copy link

Hi everyone. I encountered this problem when I installed it, show me how to solve it. please.

[4/4] RUN luarocks make:
#7 0.248
#7 0.249 kong-plugin-jwt-claims-headers 1.0-2 depends on lua ~> 5.1 (5.1-1 provided by VM)
#7 0.254
#7 0.254 Error: Build error: Failed installing handler.lua in /usr/local/lib/luarocks/rocks-5.1/kong-plugin-jwt-claims-headers/1.0-2/lua/kong/plugins/jwt-claims-headers/handler.lua: handler.lua: No such file or directory

My docker file
FROM kong:2.3.2

USER root

COPY ./plugins/kong-plugin-jwt-claims-headers /custom-plugins/kong-plugin-jwt-claims-headers

WORKDIR /custom-plugins/kong-plugin-jwt-claims-headers

RUN luarocks make

USER kong

@allbarbos
Copy link

Hi @nguyenhungbk96,
I tried the script below and it worked

FROM kong:alpine
USER root
RUN git clone https://github.com/wshirey/kong-plugin-jwt-claims-headers \
    && cd kong-plugin-jwt-claims-headers \
    && luarocks make
USER kong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants