Created
February 9, 2016 05:34
-
-
Save 3manuek/f4884fc30cfa006254cf to your computer and use it in GitHub Desktop.
Install Docker ElasticSearch image in Azure
This file contains hidden or 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 | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list | |
sudo echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | sudo tee /etc/apt/sources.list.d/newrelic.list | |
wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get purge lxc-docker | |
sudo apt-cache policy docker-engine | |
sudo apt-get install -y apt-transport-https ca-certificates linux-image-extra-$(uname -r) apparmor docker-engine docker.io newrelic-sysmond node.js nodejs-legacy sysstat | |
docker pull elasticsearch | |
nrsysmond-config --set license_key=XXXXX | |
/etc/init.d/newrelic-sysmond start | |
LICENSE_KEY=XXXXXX bash -c "$(curl -sSL https://download.newrelic.com/npi/release/install-npi-linux-debian-x64.sh)" | |
cd newrelic-npi | |
./npi install me.snov.newrelic-elasticsearch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment