bump heralding to latest master

This commit is contained in:
t3chn0m4g3
2019-10-16 14:46:58 +00:00
parent 5ee19e3e30
commit 6921857573
10 changed files with 110 additions and 8 deletions

View File

@ -1,8 +1,8 @@
FROM alpine
#
# Include dist
ADD dist/ /root/dist/
#
# Install packages
RUN apk -U --no-cache add \
build-base \
@ -16,7 +16,7 @@ RUN apk -U --no-cache add \
python3-dev \
py-virtualenv && \
pip3 install --no-cache-dir --upgrade pip && \
#
# Setup heralding
mkdir -p /opt && \
cd /opt/ && \
@ -24,15 +24,15 @@ RUN apk -U --no-cache add \
cd heralding && \
pip3 install --no-cache-dir -r requirements.txt && \
pip3 install --no-cache-dir . && \
#
# Setup user, groups and configs
addgroup -g 2000 heralding && \
adduser -S -H -s /bin/ash -u 2000 -D -g 2000 heralding && \
mkdir -p /var/log/heralding/ /etc/heralding && \
mv /root/dist/heralding.yml /etc/heralding/ && \
setcap cap_net_bind_service=+ep /usr/bin/python3.6 && \
setcap cap_net_bind_service=+ep /usr/bin/python3.7 && \
chown -R heralding:heralding /var/log/heralding && \
#
# Clean up
apk del --purge \
build-base \
@ -46,7 +46,7 @@ RUN apk -U --no-cache add \
rm -rf /root/* \
/var/cache/apk/* \
/opt/heralding
#
# Start elasticpot
STOPSIGNAL SIGINT
WORKDIR /tmp/heralding/