d4rkstar / kong-konga-keycloak

short tutorial to install kong, keycloak and konga in docker and test API authentication
281 stars 130 forks source link

Error installing kong #11

Closed raulcejas04 closed 2 years ago

raulcejas04 commented 3 years ago

Hello friends

When I try with kong I am getting next error:

Step 5/7 : RUN luarocks install --pin lua-resty-jwt 0.2.3-0 ---> Running in 593f17609dbb The command '/bin/sh -c luarocks install --pin lua-resty-jwt 0.2.3-0' returned a non-zero code: 132 ERROR: Service 'kong' failed to build : Build failed

Thank you.

tsadimas commented 2 years ago

use this as dockerfile

FROM kong:alpine

LABEL description="Alpine + Kong  + kong-oidc plugin"

USER root
RUN apk update && apk add curl git gcc musl-dev
RUN luarocks install luaossl OPENSSL_DIR=/usr/local/kong CRYPTO_DIR=/usr/local/kong
RUN luarocks install --pin lua-resty-jwt
RUN luarocks install kong-oidc

USER kong
raulcejas04 commented 2 years ago

Gracias

d4rkstar commented 2 years ago

Hello, it should work with latest docker-compose file. Let me know

tsadimas commented 2 years ago

Hi,

i removed Konga, as it is not maintained the last years and i use kong-map https://github.com/yesinteractive/kong-map . My dockerfile is this (ignore the web component)

version: '3.8' services: web: build: ./project command: 'uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8000' volumes:

On Sun, Feb 13, 2022 at 11:41 PM d4rkstar @.***> wrote:

Hello, it should work with latest docker-compose file. Let me know

— Reply to this email directly, view it on GitHub https://github.com/d4rkstar/kong-konga-keycloak/issues/11#issuecomment-1038443945, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGUZ7WG7GQ4RTYJQQ3UMRLU3AQRNANCNFSM5HKMCG4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

-- Anargyros Tsadimas Software Engineer E: @.*** P: +30 210 9549418 A: Omirou 9, Str, Tavros https://maps.google.com/?q=Omirou%209%2C%20Str%2C%20Tavros W: http://tsadimas.eu

d4rkstar commented 2 years ago

Hello! Thanks for pointing this tool to me. I look at it and see if it is appropriate to integrate it in the tutorial instead of konga, which is actually a good tool but not updated for some time