road to swarm - add openssl to autoconf, fix api_uri in LUA, fix file rights

This commit is contained in:
bunkerity
2021-03-13 15:28:15 +01:00
parent 3591715f21
commit a2543384cd
9 changed files with 16 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ FROM alpine
COPY --from=builder /etc/nginx/ /opt/confs/nginx
RUN apk add py3-pip apache2-utils bash certbot curl logrotate && \
RUN apk add py3-pip apache2-utils bash certbot curl logrotate openssl && \
pip3 install docker requests && \
mkdir /opt/entrypoint && \
mkdir -p /opt/confs/site && \

View File

@@ -1,6 +1,6 @@
FROM amd64/alpine
RUN apk add py3-pip apache2-utils bash certbot curl logrotate && \
RUN apk add py3-pip apache2-utils bash certbot curl logrotate openssl && \
pip3 install docker requests && \
mkdir /opt/entrypoint && \
mkdir -p /opt/confs/site && \

View File

@@ -7,7 +7,7 @@ FROM arm32v7/alpine
COPY --from=builder qemu-arm-static /usr/bin
RUN apk add py3-pip apache2-utils bash certbot curl logrotate && \
RUN apk add py3-pip apache2-utils bash certbot curl logrotate openssl && \
pip3 install docker requests && \
mkdir /opt/entrypoint && \
mkdir -p /opt/confs/site && \

View File

@@ -7,7 +7,7 @@ FROM arm64v8/alpine
COPY --from=builder qemu-aarch64-static /usr/bin
RUN apk add py3-pip apache2-utils bash certbot curl logrotate && \
RUN apk add py3-pip apache2-utils bash certbot curl logrotate openssl && \
pip3 install docker requests && \
mkdir /opt/entrypoint && \
mkdir -p /opt/confs/site && \

View File

@@ -1,6 +1,6 @@
FROM i386/alpine
RUN apk add py3-pip apache2-utils bash certbot curl logrotate && \
RUN apk add py3-pip apache2-utils bash certbot curl logrotate openssl && \
pip3 install docker requests && \
mkdir /opt/entrypoint && \
mkdir -p /opt/confs/site && \

View File

@@ -2,7 +2,7 @@
echo "[*] Starting autoconf ..."
cp /opt/confs/nginx/* /etc/nginx
cp -r /opt/confs/nginx/* /etc/nginx
# trap SIGTERM and SIGINT
function trap_exit() {
@@ -22,6 +22,9 @@ echo "" > /etc/crontabs/root
touch /var/log/jobs.log
echo "0 0 * * * /usr/sbin/logrotate -f /etc/logrotate.conf > /dev/null 2>&1" >> /etc/crontabs/root
# start cron
crond
# run autoconf app
/opt/entrypoint/app.py &