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 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 \

View File

@ -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"]