Skip to content

Commit

Permalink
Merge pull request telekom-security#1538 from glaslos/patch-2
Browse files Browse the repository at this point in the history
Update Glutton Dockerfile
  • Loading branch information
t3chn0m4g3 authored May 7, 2024
2 parents 5815664 + 1078ce5 commit 8d385a3
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions docker/glutton/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,19 @@ COPY dist/ /root/dist/
#
# Setup apk
RUN apk -U --no-cache add \
build-base \
git \
g++ \
make \
git \
g++ \
iptables-dev \
libpcap-dev && \
#
# Setup go, glutton
export GO111MODULE=on && \
mkdir -p /opt/ && \
cd /opt/ && \
git clone https://github.com/mushorg/glutton && \
cd /opt/glutton/ && \
git checkout c1204c65ce32bfdc0e08fb2a9abe89b3b8eeed62 && \
cp /root/dist/system.go . && \
go mod download && \
make build && \
mv /root/dist/config.yaml /opt/glutton/config/
#
Expand All @@ -30,11 +28,8 @@ COPY --from=builder /opt/glutton/config /opt/glutton/config
COPY --from=builder /opt/glutton/rules /opt/glutton/rules
#
RUN apk -U --no-cache add \
iptables \
iptables-dev \
libnetfilter_queue-dev \
libcap \
libpcap-dev && \
libpcap-dev && \
setcap cap_net_admin,cap_net_raw=+ep /opt/glutton/bin/server && \
setcap cap_net_admin,cap_net_raw=+ep /sbin/xtables-nft-multi && \
mkdir -p /var/log/glutton \
Expand Down

0 comments on commit 8d385a3

Please sign in to comment.