https://github.com/mhndev/docker-lua
docker image for lua (luarocks included)
https://github.com/mhndev/docker-lua
docker docker-image docker-lua lua luarocks
Last synced: 5 months ago
JSON representation
docker image for lua (luarocks included)
- Host: GitHub
- URL: https://github.com/mhndev/docker-lua
- Owner: mhndev
- Created: 2017-10-03T12:56:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-06T07:29:32.000Z (over 8 years ago)
- Last Synced: 2025-04-01T02:35:51.440Z (10 months ago)
- Topics: docker, docker-image, docker-lua, lua, luarocks
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lua Dockerfile
## Includes
1) lua (https://www.lua.org/)
2) luarocks (https://www.luarocks.org/) (Lua package manager)
3) pre installed lua modules kong , lua-cjson (which you can add other modules or delete existing)
4) install lua module on demand or up and running container
## Default Versions
Default lua version : 5.3.4
Default luarocks version : 2.4.1
## get this image
you can execute following command to get this docker image :
```
docker pull mhndev/docker-lua
```
## About Dockerfile
if you look at dockerfile you can see that
lua version and luarocks version are as environment variable
so you can simply change it to any version you want.
this package build from source , so you can any version which you need and,
you don't have to just select among your linux distribution available packages .
## Install lua modules (packages)
by running following command you can install lua plugin in container
```
docker-compose exec lua_server install-module
```
for example for installing kong module :
```
docker-compose exec lua_server install-module kong
```
## Pre Installed lua modules
also in your dockerfile there is environment variable called "needed_modules"
you can list all needed modules for your lua runtime, so by running container from your image
all modules already are in container.