Last active
August 29, 2015 14:02
-
-
Save uzyexe/5646eef7a4ca42d79f04 to your computer and use it in GitHub Desktop.
This is newrelic clouc-config.yml for pxeboot coreos. https://registry.hub.docker.com/u/uzyexe/newrelic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
EnvironmentFile=/etc/environment | |
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 uzyexe/newrelic' | |
ExecStop=/usr/bin/docker kill newrelic-client |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment