Skip to content

Instantly share code, notes, and snippets.

@eloycoto
Created June 25, 2021 14:53
Show Gist options
  • Save eloycoto/40c8bfceec8fb054cccbd30fde50d02f to your computer and use it in GitHub Desktop.
Save eloycoto/40c8bfceec8fb054cccbd30fde50d02f to your computer and use it in GitHub Desktop.
ARG IMAGE=registry.redhat.io/3scale-amp2/apicast-gateway-rhel8:3scale2.10
FROM ${IMAGE}
USER root
WORKDIR /opt/app-root/src/
RUN dnf install -y perl-App-cpanminus gcc git
ENV LUA_PATH="/usr/lib64/lua/5.1/?.lua;/usr/local/share/lua/5.1/?.lua"
RUN mkdir -p /usr/share/lua/5.1/luarocks/ && \
cp /usr/lib64/lua/5.1/luarocks/site_config.lua /usr/share/lua/5.1/luarocks/site_config.lua && \
yum install -y luarocks && \
luarocks install --server=http://luarocks.org/dev lua-rover
COPY Roverfile .
COPY Roverfile.lock .
RUN rover install --roverfile=/opt/app-root/src/Roverfile
luarocks {
group 'production' {
module { 'busted' },
}
}
busted 2.0.0-1||production
dkjson 2.5-2||production
lua-term 0.7-1||production
lua_cliargs 3.0-2||production
luafilesystem 1.8.0-1||production
luassert 1.8.0-0||production
luasystem 0.2.1-0||production
mediator_lua 1.1.2-0||production
penlight 1.10.0-1||production
say 1.3-1||production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment