tweaking, hardening

This commit is contained in:
Marco Ochse
2018-05-19 20:40:01 +00:00
parent eb55ad5870
commit 84c51afe17
2 changed files with 6 additions and 7 deletions

View File

@ -1,11 +1,10 @@
FROM alpine
# Install packages
RUN apk -U upgrade && \
apk add alpine-sdk \
RUN apk -U --no-cache add \
alpine-sdk \
autoconf \
automake \
bash \
curl \
gawk \
gcc \
@ -27,7 +26,7 @@ RUN apk -U upgrade && \
# Install netdata
cd /root && \
git clone https://github.com/firehol/netdata && \
git clone --depth=1 https://github.com/firehol/netdata && \
cd netdata && \
./netdata-installer.sh --dont-wait --dont-start-it && \
sed -i "s/#local:/local:/" /etc/netdata/python.d/elasticsearch.conf && \
@ -40,7 +39,7 @@ RUN apk -U upgrade && \
cd / && \
# Clean up
apk del alpine-sdk \
apk del --purge alpine-sdk \
autoconf \
automake \
gcc \

View File

@ -1,4 +1,4 @@
version: '2.2'
version: '2.3'
services:
@ -16,5 +16,5 @@ services:
volumes:
- /proc:/host/proc: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"]