Last active
April 14, 2024 14:03
-
-
Save mehuled/6479368fa528b38b79b9ed791ee5983f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM kong/kong:latest | |
# Ensure any patching steps are executed as root user | |
USER root | |
RUN apt-get update | |
# Add custom plugin to the image | |
RUN mkdir -p /usr/local/kong/plugins | |
COPY kong-plugin-add-header /usr/local/kong/plugins/kong-plugin-add-header | |
ENV KONG_LUA_PACKAGE_PATH=/usr/local/kong/plugins/kong-plugin-add-header/?.lua;; | |
ENV KONG_PLUGINS=bundled,add-header | |
RUN apt install build-essential -y | |
RUN apt-get -y install curl cmake | |
RUN curl https://github.com/EmmyLua/EmmyLuaDebugger/archive/refs/tags/1.0.16.tar.gz \ | |
-L -o EmmyLuaDebugger-1.0.16.tar.gz && \ | |
tar -xzvf EmmyLuaDebugger-1.0.16.tar.gz && \ | |
cd EmmyLuaDebugger-1.0.16 && \ | |
mkdir -p build && \ | |
cd build && \ | |
cmake -DCMAKE_BUILD_TYPE=Release ../ && \ | |
make install && \ | |
mkdir -p /usr/local/emmy && \ | |
cp install/bin/emmy_core.so /usr/local/emmy/ && \ | |
cd .. && \ | |
cd .. && \ | |
rm -rf EmmyLuaDebugger-1.0.16 EmmyLuaDebugger-1.0.16.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment