forked from auto-ssl/lua-resty-auto-ssl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-test
46 lines (36 loc) · 1013 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM openresty/openresty:1.19.9.1-5-centos7
# Runtime dependencies
RUN yum -y install \
bash \
coreutils \
curl \
diffutils \
grep \
openssl \
sed
# Build dependencies.
RUN yum -y install make
# Dependencies for the release process.
RUN yum -y install git zip
# 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.40-linux-amd64.rpm
RUN yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
RUN yum --enablerepo=remi install redis -y
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;${LUA_PATH}"
ENV LUA_CPATH="/tmp/resty-auto-ssl-test-luarocks/lib/lua/5.1/?.so;${LUA_CPATH}"
COPY . /app
CMD ["bash"]