An open API service indexing awesome lists of open source software.

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)

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.