dev: refactoring + lokalise fetch + process

This commit is contained in:
NGPixel
2017-12-03 21:11:26 -05:00
parent 26e3e21005
commit e55c5805b4
95 changed files with 226 additions and 3344 deletions

15
dev/build/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:8-alpine
LABEL maintainer="requarks.io"
RUN apk update && \
apk add bash curl git openssh supervisor --no-cache && \
mkdir -p /var/wiki
WORKDIR /var/wiki
COPY supervisord.conf /etc/supervisord.conf
COPY . /var/wiki
EXPOSE 3000
CMD ["supervisord", "--nodaemon", "-c", "/etc/supervisord.conf"]

View File

@@ -0,0 +1,23 @@
[unix_http_server]
file=/var/run/supervisor.sock
chmod=0700
[supervisord]
logfile=/logs/supervisord.log
pidfile=/var/run/supervisord.pid
childlogdir=/logs
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock
[program:wikijs]
command = node server
autostart=true
autorestart=true
priority=5
directory=/var/wiki
stdout_logfile=/logs/wiki-stdout.log
stderr_logfile=/logs/wiki-stderr.log