mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
tweaking
updating .env, env.example and compose files regarding sentrypeer ENVs make glutton image aware of payloads feature bump glutton to latest master, alpine 3.19, multi-stage build bump ipphoney to alpine 3.19 bump mailoney to alpine 3.19, adjust for py3 revert medpot to previous master, use multi stage build and alpine 3.19 bump cyberchef to latest master bump ngninx to alpine 3.19 bump p0f to alpine 3.19, use multi stage build bump redishoneypot to alpine 3.19, use multi stage build bump sentrypeer to latest master, fix bug for open ports in compose files, now all tcp/5060, udp/5060 traffic will be seen bump spiderfoot to latest master bump spiderfoot to alpine 3.19 bump suricata to 7.0.2, fix performance issue with capture-filter-bpf by reducing the rules update clean.sh to include glutton payloads folder
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
FROM alpine:3.17
|
||||
FROM golang:1.21-alpine as builder
|
||||
#
|
||||
# Setup apk
|
||||
RUN apk -U --no-cache add \
|
||||
build-base \
|
||||
git \
|
||||
go \
|
||||
g++ && \
|
||||
build-base \
|
||||
git \
|
||||
go \
|
||||
g++ && \
|
||||
#
|
||||
# Setup go, build medpot
|
||||
export GOPATH=/opt/go/ && \
|
||||
@ -22,27 +22,21 @@ RUN apk -U --no-cache add \
|
||||
go get -d -v go.uber.org/zap && \
|
||||
cd medpot && \
|
||||
cp dist/etc/ews.cfg /etc/ && \
|
||||
go build medpot && \
|
||||
go build medpot
|
||||
#
|
||||
FROM alpine:3.19
|
||||
#
|
||||
# Setup medpot
|
||||
mkdir -p /opt/medpot \
|
||||
/var/log/medpot && \
|
||||
cp medpot /opt/medpot && \
|
||||
cp /opt/go/src/medpot/template/*.xml /opt/medpot/ && \
|
||||
#
|
||||
COPY --from=builder /opt/go/src/medpot/medpot /opt/medpot/medpot
|
||||
COPY --from=builder /opt/go/src/medpot/template/*.xml /opt/medpot/
|
||||
COPY --from=builder /opt/go/src/medpot/dist/etc/ews.cfg /etc/ews.cfg
|
||||
RUN mkdir -p /var/log/medpot && \
|
||||
#
|
||||
# Setup user, groups and configs
|
||||
addgroup -g 2000 medpot && \
|
||||
adduser -S -s /bin/ash -u 2000 -D -g 2000 medpot && \
|
||||
chown -R medpot:medpot /var/log/medpot && \
|
||||
#
|
||||
# Clean up
|
||||
apk del --purge build-base \
|
||||
git \
|
||||
go \
|
||||
g++ && \
|
||||
rm -rf /var/cache/apk/* \
|
||||
/opt/go \
|
||||
/root/dist
|
||||
chown -R medpot:medpot /var/log/medpot
|
||||
#
|
||||
# Start medpot
|
||||
WORKDIR /opt/medpot
|
||||
|
@ -19,4 +19,4 @@ services:
|
||||
image: "dtagdevsec/medpot:alpha"
|
||||
read_only: true
|
||||
volumes:
|
||||
- /data/medpot/log/:/var/log/medpot
|
||||
- $HOME/tpotce/data/medpot/log/:/var/log/medpot
|
||||
|
Reference in New Issue
Block a user