Created
February 1, 2017 19:39
-
-
Save omerh/464743f07e425caa90f306ea8ac73326 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# docker | |
curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main" | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates | |
sudo apt-get -y install docker-engine | |
# docker-compose | |
wget https://bootstrap.pypa.io/get-pip.py | |
python3 get-pip.py | |
sudo pip install docker-compose | |
# newrelic | |
echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list | |
wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add - | |
apt-get update | |
apt-get install -y newrelic-sysmond | |
nrsysmond-config --set license_key=$1 | |
usermod -a -G docker newrelic | |
/etc/init.d/newrelic-sysmond start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment