-
Notifications
You must be signed in to change notification settings - Fork 181
/
Dockerfile-test-lua51
44 lines (35 loc) · 1020 Bytes
/
Dockerfile-test-lua51
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM openresty/openresty:1.11.2.1-centos
# Runtime dependencies
RUN yum -y install \
bash \
coreutils \
curl \
diffutils \
grep \
openssl \
sed
# Build dependencies.
RUN yum -y install make
# Test dependencies
RUN yum -y install epel-release && \
yum -y install \
gcc \
git \
lsof \
lua \
procps-ng \
redis \
sudo \
https://bin.equinox.io/a/6iuHhJeWypm/ngrok-2.3.34-linux-amd64.rpm
ENV PATH /usr/local/openresty/luajit/bin:/usr/local/openresty/bin:/usr/local/openresty/nginx/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV TEST_NGINX_RESOLVER 127.0.0.11 ipv6=off
RUN mkdir /app
WORKDIR /app
COPY Makefile /app/Makefile
RUN make install-test-deps
ENV PATH="/tmp/resty-auto-ssl-test-luarocks/bin:${PATH}"
ENV LUA_PATH="/tmp/resty-auto-ssl-test-luarocks/share/lua/5.1/?.lua;/tmp/resty-auto-ssl-test-luarocks/share/lua/5.1/?/init.lua;;"
ENV LUA_CPATH="/tmp/resty-auto-ssl-test-luarocks/lib/lua/5.1/?.so;;"
COPY . /app
ENTRYPOINT []
CMD ["bash"]