Skip to content

Instantly share code, notes, and snippets.

@badri
Created March 16, 2023 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save badri/292fae567a1ae7b068058e2a2583d685 to your computer and use it in GitHub Desktop.
Save badri/292fae567a1ae7b068058e2a2583d685 to your computer and use it in GitHub Desktop.
RHEL8 kong
FROM kong/kong-gateway:2.8-rhel
USER root
# -- BEGIN custom stuff
RUN yum install -q -y autoconf automake libtool m4 make
RUN mkdir /expat /rocks
# Can be downloaded here: https://github.com/libexpat/libexpat/releases/tag/R_2_5_0
COPY R_2_5_0.tar.gz /expat
# Rock files can be downloaded from https://luarocks.org/
COPY luaexpat-1.5.1-1.src.rock /rocks
COPY expadom-0.1.0-1.src.rock /rocks
COPY luautf8-0.1.5-1.src.rock /rocks
COPY luacs-1.0.2-0.src.rock /rocks
COPY xmlua-1.2.0-0.src.rock /rocks
COPY kong-plugin-e2e-token-verifier-v1-12-1.12.0-1.all.rock /rocks
WORKDIR /expat
RUN tar zxf R_2_5_0.tar.gz
RUN cd ./libexpat-*/expat && ./buildconf.sh && ./configure --build=$(uname -m)-linux-gnu --enable-static=no --libdir=/usr/local/lib && make install -j 4
WORKDIR /rocks
RUN luarocks install luaexpat-1.5.1-1.src.rock
RUN luarocks install expadom-0.1.0-1.src.rock
RUN luarocks install luautf8-0.1.5-1.src.rock
RUN luarocks install luacs-1.0.2-0.src.rock
RUN luarocks install xmlua-1.2.0-0.src.rock
RUN luarocks install kong-plugin-e2e-token-verifier-v1-12-1.12.0-1.all.rock
# -- END custom stuff
USER kong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment