Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

ianblenke/newrelic

Run the New Relic server monitor daemon for docker and coreos server.

This is the ianblenke/newrelic github project, which backs the ianblenke/newrelic docker hub image.

This is a fork of the uzyexe/dockerfile-newrelic github project, which backs the uzyexe/newrelic docker hub image.

Dockerfile

Trusted Build

This Docker image is based on the official debian:squeeze base image.

Using

Please note: Replaced by your newrelic license key is YOUR_NEW_RELIC_LICENSE_KEY

case 1: docker run

docker run -d -e NEW_RELIC_LICENSE_KEY=YOUR_NEW_RELIC_LICENSE_KEY -h `hostname` ianblenke/newrelic

--

case 2: Auto-Running configure for cloud-config.yml (for Disk Booting coreos)

coreos:
  units:
    - name: docker.service
      command: start
    - name: newrelic-client.service
      command: start
      content: |
          [Unit]
          Description=newrelic-client

          [Service]
          Restart=always
          TimeoutStartSec=20m
          ExecStartPre=-/usr/bin/docker rm -f newrelic-client
          ExecStart=/bin/bash -c 'HOSTNAME=`/usr/bin/hostname`; docker run --name newrelic-client --rm --env="NEW_RELIC_LICENSE_KEY=YOUR_NEW_RELIC_LICENSE_KEY" -h $HOSTNAME uzyexe/newrelic'
          ExecStop=/usr/bin/docker kill newrelic-client

--

case 3: Auto-Running configure for cloud-config.yml (for PXE Booting coreos)

Please note: Replaced by your newrelic license key is YOUR_NEW_RELIC_LICENSE_KEY

coreos:
  units:
    - name: docker.service
      command: restart
      content: |
          [Unit]
          Description=Docker Application Container Engine
          Documentation=http://docs.docker.io

          [Service]
          Environment="TMPDIR=/var/tmp/"
          ExecStartPre=/bin/mount --make-rprivate /
          ExecStart=/usr/bin/docker -d -r=false -H fd://

          [Install]
          WantedBy=multi-user.target
    - name: newrelic-client.service
      command: start
      content: |
          [Unit]
          Description=newrelic-client

          [Service]
          Restart=always
          TimeoutStartSec=20m
          ExecStart=/bin/bash -c 'HOSTNAME=`/usr/bin/hostname`; docker run --name newrelic-client --rm --env="NEW_RELIC_LICENSE_KEY=YOUR_NEW_RELIC_LICENSE_KEY" -h $HOSTNAME ianblenke/newrelic'
          ExecStop=/usr/bin/docker kill newrelic-client

write_files:
  - path: /tmp/coreos-setup-hostname
    content: |
        #!/bin/bash +x
        ENV=$1

        if [ -z "$ENV" ]; then
          echo usage: $0 /etc/environment
          exit 1
        fi

        grep -c HOSTNAME $ENV || echo HOSTNAME=$HOSTNAME >> $ENV

New Relic

Getting started

Release Notes

Docker Pull Command
Owner
ianblenke
Source Repository

Comments (0)