I am trying with https://github.com/d4rkstar/kong-konga-keycloak when I run sudo docker-compose up -d kong it send me:
The command '/bin/sh -c luarocks install --pin lua-resty-jwt' returned a non-zero code: 132
Watching dockerfile it contains:
FROM kong:2.0.4-alpine
LABEL description="Alpine + Kong 2.0.4 + kong-oidc plugin"
USER root
RUN apk update && apk add git unzip luarocks
RUN luarocks install --pin lua-resty-jwt 0.2.2-0
RUN luarocks install kong-oidc
USER kong
This is the output when I install manually:
/ # apk add luarocks
(1/2) Installing curl (7.79.1-r0)
(2/2) Installing luarocks (2.4.4-r1)
Executing busybox-1.31.1-r9.trigger
OK: 67 MiB in 38 packages
/ # luarocks
Illegal instruction (core dumped)
My platform is: ubuntu 20 where I am running docker 20.10.10 and docker-compose 1.29.2.
2 days after
I replaced apk add luarocks by ( How to install gdbserver package on Alpine Docker image? )
RUN apk add --no-cache make
RUN apk add --no-cache linux-headers
RUN apk add --no-cache texinfo
RUN apk add --no-cache gcc
RUN apk add --no-cache g++
RUN apk add --no-cache gfortran
# install gdb
# RUN apk add --no-cache gdb
RUN mkdir gdb-build ;\
cd gdb-build;\
wget http://ftp.gnu.org/gnu/gdb/gdb-7.11.tar.xz;\
tar -xvf gdb-7.11.tar.xz;\
cd gdb-7.11;\
./configure --prefix=/usr;\
make;\
make -C gdb install;\
cd ..;\
rm -rf gdb-build/;
then now I do not get error while I build.
I get the same error when I tried to migrate: docker-compose run --rm kong kong migrations bootstrap and kong never start, but now luarocks works fine inside container.
Thank you