Skip to content

Instantly share code, notes, and snippets.

@geota
Last active August 29, 2015 14:22
Show Gist options
  • Save geota/84923377e1b1c37f9dae to your computer and use it in GitHub Desktop.
Save geota/84923377e1b1c37f9dae to your computer and use it in GitHub Desktop.
# Install Brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install boot2docker, docker, and fig
brew install boot2docker
brew install docker
brew install fig
# Create dir for our ELK docker files
mkdir -p ~/wip/elkstack; cd ~/wip/elkstack/
curl -Lso dc-elk.yml https://raw.githubusercontent.com/ChristianKniep/docker-elk/master/dc-elk.yml
curl -Lso elk.yml https://raw.githubusercontent.com/ChristianKniep/docker-elk/master/elk.yml
# Edit elk.yml to pull down the latest docker image
sed -i s/elk:dev/elk:latest/g elk.yml
# Ensure our docker starts up cleanly
boot2docker init
boot2docker up
# Set the environment variables
$(boot2docker shellinit)
# Launch the ELK stack
fig -f dc-elk.yml up -d
# This should output an IP address
echo $DOCKER_HOST
# Make sure everything is working
curl $(echo $DOCKER_HOST | cut -d '/' -f 3 | cut -d ':' -f 1):9200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment