mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
tweaking, hardening
This commit is contained in:
@ -1,11 +1,10 @@
|
|||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apk -U upgrade && \
|
RUN apk -U --no-cache add \
|
||||||
apk add alpine-sdk \
|
alpine-sdk \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
bash \
|
|
||||||
curl \
|
curl \
|
||||||
gawk \
|
gawk \
|
||||||
gcc \
|
gcc \
|
||||||
@ -27,7 +26,7 @@ RUN apk -U upgrade && \
|
|||||||
|
|
||||||
# Install netdata
|
# Install netdata
|
||||||
cd /root && \
|
cd /root && \
|
||||||
git clone https://github.com/firehol/netdata && \
|
git clone --depth=1 https://github.com/firehol/netdata && \
|
||||||
cd netdata && \
|
cd netdata && \
|
||||||
./netdata-installer.sh --dont-wait --dont-start-it && \
|
./netdata-installer.sh --dont-wait --dont-start-it && \
|
||||||
sed -i "s/#local:/local:/" /etc/netdata/python.d/elasticsearch.conf && \
|
sed -i "s/#local:/local:/" /etc/netdata/python.d/elasticsearch.conf && \
|
||||||
@ -40,7 +39,7 @@ RUN apk -U upgrade && \
|
|||||||
cd / && \
|
cd / && \
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
apk del alpine-sdk \
|
apk del --purge alpine-sdk \
|
||||||
autoconf \
|
autoconf \
|
||||||
automake \
|
automake \
|
||||||
gcc \
|
gcc \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version: '2.2'
|
version: '2.3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
@ -16,5 +16,5 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /proc:/host/proc:ro
|
- /proc:/host/proc:ro
|
||||||
- /sys:/host/sys:ro
|
- /sys:/host/sys:ro
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
command: ["/usr/sbin/netdata","-D","-s","/host","-p","19999"]
|
command: ["/usr/sbin/netdata","-D","-s","/host","-p","19999"]
|
||||||
|
Reference in New Issue
Block a user