-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile.test
24 lines (22 loc) · 869 Bytes
/
Dockerfile.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM openresty/openresty:xenial
RUN apt-get update \
&& apt-get install -y \
git \
&& mkdir /src \
&& cd /src \
&& git config --global url."https://".insteadOf git:// \
&& luarocks install lua-resty-redis \
&& luarocks install lua-resty-lock \
&& luarocks install luasocket \
&& luarocks install luacheck \
&& luarocks install luacov \
&& luarocks install luacov-coveralls \
&& luarocks install busted \
&& luarocks install lua-resty-perf 1.0.4-0 \
&& git clone https://github.com/steve0511/resty-redis-cluster.git \
&& cd resty-redis-cluster/ \
&& git checkout 8d7b96d002337c38d71859e5f04f76b413aa5c29 \
&& luarocks make \
&& gcc -fPIC -shared -I/usr/local/openresty/luajit -o /usr/local/openresty/luajit/lib/lua/5.1/librestyredisslot.so src/redis_slot.c \
&& rm -Rf /src
CMD ["busted"]