mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 04:52:11 +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
|
# Include dist
|
||||||
ADD dist/ /root/dist/
|
ADD dist/ /root/dist/
|
||||||
|
@ -12,12 +12,9 @@ RUN apk -U --no-cache add \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
libzmq \
|
libzmq \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
py3-cryptography \
|
|
||||||
py3-pip \
|
py3-pip \
|
||||||
py3-pyzmq \
|
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev && \
|
||||||
py-virtualenv && \
|
|
||||||
#
|
#
|
||||||
# Setup heralding
|
# Setup heralding
|
||||||
mkdir -p /opt && \
|
mkdir -p /opt && \
|
||||||
|
@ -25,6 +22,7 @@ RUN apk -U --no-cache add \
|
||||||
git clone https://github.com/johnnykv/heralding && \
|
git clone https://github.com/johnnykv/heralding && \
|
||||||
cd heralding && \
|
cd heralding && \
|
||||||
git checkout 3f38976a2ab4d884d755b6324f2c71923ddadbdb && \
|
git checkout 3f38976a2ab4d884d755b6324f2c71923ddadbdb && \
|
||||||
|
pip3 install --upgrade pip && \
|
||||||
pip3 install --no-cache-dir -r requirements.txt && \
|
pip3 install --no-cache-dir -r requirements.txt && \
|
||||||
pip3 install --no-cache-dir . && \
|
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 && \
|
adduser -S -H -s /bin/ash -u 2000 -D -g 2000 heralding && \
|
||||||
mkdir -p /var/log/heralding/ /etc/heralding && \
|
mkdir -p /var/log/heralding/ /etc/heralding && \
|
||||||
mv /root/dist/heralding.yml /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 && \
|
chown -R heralding:heralding /var/log/heralding && \
|
||||||
#
|
#
|
||||||
# Clean up
|
# Clean up
|
||||||
|
@ -44,8 +42,7 @@ RUN apk -U --no-cache add \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libressl-dev \
|
libressl-dev \
|
||||||
postgresql-dev \
|
postgresql-dev \
|
||||||
python3-dev \
|
python3-dev && \
|
||||||
py-virtualenv && \
|
|
||||||
rm -rf /root/* \
|
rm -rf /root/* \
|
||||||
/var/cache/apk/* \
|
/var/cache/apk/* \
|
||||||
/opt/heralding
|
/opt/heralding
|
||||||
|
|
|
@ -31,7 +31,7 @@ services:
|
||||||
- "3389:3389"
|
- "3389:3389"
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
- "5900:5900"
|
- "5900:5900"
|
||||||
image: "ghcr.io/telekom-security/heralding:2006"
|
image: "dtagdevsec/heralding:2006"
|
||||||
read_only: true
|
read_only: true
|
||||||
volumes:
|
volumes:
|
||||||
- /data/heralding/log:/var/log/heralding
|
- /data/heralding/log:/var/log/heralding
|
||||||
|
|
Loading…
Reference in a new issue