Q. I'm trying to install https://github.com/tarantool/http/ in my Docker image but getting an error while compiling the sources:
Cloning into 'http'…
http/lib.c:31:17: fatal error: lua.h: No such file or directory #include <lua.h>
Error: Build error: Failed compiling object http/lib.o
gcc -O2 -fPIC -I/usr/include -c http/lib.c -o http/lib.o -I/usr/local/include
Here’s is my Dockerfile:
RUN apk add —no-cache luarocks
RUN luarocks install https://raw.githubusercontent.com/tarantool/http/master/http-scm-1.rockspec —local
CMD [“tarantool”, “app.lua”]
Is there anything that I’m missing here? (2017)
A. This problem is caused by missing Tarantool header files.
By the way, Tarantool’s Docker image comes with a full stack of Tarantool modules,
http being one of them. You might want to have a look at its Dockerfile.