Skip to content

Instantly share code, notes, and snippets.

@mehuled
Last active April 14, 2024 14:03
Show Gist options
  • Save mehuled/6479368fa528b38b79b9ed791ee5983f to your computer and use it in GitHub Desktop.
Save mehuled/6479368fa528b38b79b9ed791ee5983f to your computer and use it in GitHub Desktop.
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