mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
prep heralding rebuild
This commit is contained in:
parent
eefd38a335
commit
28681ef398
2 changed files with 6 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM alpine:3.13
|
||||
FROM alpine:3.14
|
||||
#
|
||||
# Include dist
|
||||
ADD dist/ /root/dist/
|
||||
|
@ -12,12 +12,9 @@ RUN apk -U --no-cache add \
|
|||
openssl-dev \
|
||||
libzmq \
|
||||
postgresql-dev \
|
||||
py3-cryptography \
|
||||
py3-pip \
|
||||
py3-pyzmq \
|
||||
python3 \
|
||||
python3-dev \
|
||||
py-virtualenv && \
|
||||
python3-dev && \
|
||||
#
|
||||
# Setup heralding
|
||||
mkdir -p /opt && \
|
||||
|
@ -25,6 +22,7 @@ RUN apk -U --no-cache add \
|
|||
git clone https://github.com/johnnykv/heralding && \
|
||||
cd heralding && \
|
||||
git checkout 3f38976a2ab4d884d755b6324f2c71923ddadbdb && \
|
||||
pip3 install --upgrade pip && \
|
||||
pip3 install --no-cache-dir -r requirements.txt && \
|
||||
pip3 install --no-cache-dir . && \
|
||||
#
|
||||
|
@ -33,7 +31,7 @@ RUN apk -U --no-cache add \
|
|||
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.8 && \
|
||||
setcap cap_net_bind_service=+ep /usr/bin/python3.9 && \
|
||||
chown -R heralding:heralding /var/log/heralding && \
|
||||
#
|
||||
# Clean up
|
||||
|
@ -44,8 +42,7 @@ RUN apk -U --no-cache add \
|
|||
libffi-dev \
|
||||
libressl-dev \
|
||||
postgresql-dev \
|
||||
python3-dev \
|
||||
py-virtualenv && \
|
||||
python3-dev && \
|
||||
rm -rf /root/* \
|
||||
/var/cache/apk/* \
|
||||
/opt/heralding
|
||||
|
|
|
@ -31,7 +31,7 @@ services:
|
|||
- "3389:3389"
|
||||
- "5432:5432"
|
||||
- "5900:5900"
|
||||
image: "ghcr.io/telekom-security/heralding:2006"
|
||||
image: "dtagdevsec/heralding:2006"
|
||||
read_only: true
|
||||
volumes:
|
||||
- /data/heralding/log:/var/log/heralding
|
||||
|
|
Loading…
Reference in a new issue