-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
18 lines (15 loc) · 927 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Newrelic in a busybox container, what a lovely small service mode container.
FROM progrium/busybox
# Newrelic daemon in the foreground, logging to stdout using the config file in etc/newrelic - put this in a start.sh
CMD '/start.sh'
ADD http://download.newrelic.com/server_monitor/archive/2.0.2.111/newrelic-sysmond-2.0.2.111-linux.tar.gz /tmp/newrelic-sysmond.tar.gz
RUN gunzip /tmp/newrelic-sysmond.tar.gz && \
mkdir /tmp/newrelic && \
tar xf /tmp/newrelic-sysmond.tar -C /tmp/newrelic && \
/bin/ash -c '[ ! -d /etc/newrelic ] && mkdir -p /etc/newrelic' && \
/bin/ash -c '[ ! -d /usr/local/sbin ] && mkdir -p /usr/local/sbin' && \
cp /tmp/newrelic/*/daemon/nrsysmond.x64 /usr/local/sbin/nrsysmond && \
cp /tmp/newrelic/*/scripts/nrsysmond-config /usr/local/sbin/nrsysmond-config && \
cp /tmp/newrelic/*/nrsysmond.cfg /etc/newrelic/nrsysmond.cfg
ADD start.sh /start.sh
RUN chmod +x /start.sh