I am looking for the best way to run lua scripts on a docker container. I believe lua is already installed, as well as a myrid of libraries that work in my plugins (example: ssl.https)
To be clear, I want to run lua statements on the container but not in Kong.
docker exec kong lua SomeScriptToBuildEnvironmentVariables.lua
This currently fails because lua isn’t in the path (looking to use kong:1.2.0-alpine) specifically
docker exec kong /usr/local/openresty/luajit/bin/luajit SomeScriptToBuildEnvironmentVariables.lua
That was absolutely it! Thanks so much, I was starting to feel pressure to get my story closed. I’ll get up to speed on luajit and get up to speed on it.
The Kong Docker customizing tools also use Lua. For some inspiration see https://github.com/Kong/docker-kong/tree/master/customize
Thanks. I’ll review that as well.
“I’ll get up to speed on luajit and get up to speed on it.”… I really need to read my responses before posting them.