-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlf.Dockerfile
66 lines (52 loc) · 1.41 KB
/
lf.Dockerfile
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM debian:buster
RUN apt-get -y update && apt-get install -y \
bmake \
build-essential \
curl \
jq \
lua5.3 \
liblua5.3-dev \
libbsd-dev \
libpq-dev \
lighttpd \
pmake \
exim4 \
postgresql-client \
postgresql-server-dev-all \
python-pip \
sudo \
wget
RUN pip install markdown2
ADD ./lfmoonbridge /opt/rooset/lfmoonbridge
ADD ./lfframework /opt/rooset/lfframework
ADD ./lffrontend /opt/rooset/lffrontend
ADD ./etc /opt/rooset/etc
ADD ./lfcore /opt/rooset/lfcore
ENV PGHOST="db"
ENV PGUSER="postgres"
ENV PGDATABASE="liquid_feedback"
# lfcore setup
# seconds before first execution
ENV CORE_SERVICES_INITIAL_DELAY="10"
# seconds between runs
ENV CORE_SERVICES_REPEAT_DELAY="5"
WORKDIR /opt/lfcore
RUN bmake
# lffrontend setup
ADD ./etc/keep-alive /usr/local/bin/keep-alive
# Install Luarocks and deps
RUN apt-get install -y luarocks
RUN luarocks install htmlparser
# Install Moonbridge
RUN cd /opt/rooset/lfmoonbridge && \
pmake MOONBR_LUA_PATH=/opt/rooset/lfmoonbridge/?.lua
ENV MOONBR_LUA_PATH="/opt/rooset/lfmoonbridge/?.lua"
ENV LUA_PATH="/opt/rooset/lffrontend/?.lua;/opt/rooset/lfmoonbridge/?.lua;;"
ENV FRONTEND_CONFIG="docker"
# Install webMCP framework
RUN cd /opt/rooset/lfframework && \
make
EXPOSE 8080
WORKDIR /opt/rooset/etc
# override with /opt/rooset/etc/core-service to run core services
ENTRYPOINT [ "/opt/rooset/etc/frontend-server" ]