diff --git a/README.md b/README.md index d118e860c3..90fa008b1d 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,17 @@ Uses Docker images which support Raspberry Pi based on the official images: ## Setup -1. Install [Docker](http://docker.io) on Raspberry Pi. -2. Install [Docker-compose](http://docs.docker.com/compose/install/) on Raspberry Pi. -3. Clone this repository on Raspberry Pi. +Set right permissions for `rpi-docker-elk-installation.sh` just by typing: -*NOTE*: Give a try to [HypriotOS](http://blog.hypriot.com/) if you want to easily install Docker on your Raspberry Pi. +```bash +$ sudo chmod +x rpi-docker-elk-installation.sh +``` +Execute the script with: +```bash +$ ./rpi-docker-elk-installation.sh +``` +Enjoy the automatic installation! # Usage diff --git a/rpi-docker-elk-installation.sh b/rpi-docker-elk-installation.sh new file mode 100644 index 0000000000..11dbf6d3e1 --- /dev/null +++ b/rpi-docker-elk-installation.sh @@ -0,0 +1,30 @@ +#!/bin/bash +#rpi-docker-elk stack scripted installation +#Installing required packages +sudo apt-get update +sudo apt-get install -y \ + apt-transport-https \ + ca-certificates \ + curl \ + python-software-properties + +#Adding Docker's official GPG key +curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - + +#Setup stable repository +echo "deb [arch=armhf] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ + $(lsb_release -cs) stable" | \ + sudo tee /etc/apt/sources.list.d/docker.list + +#Installing Docker +sudo apt-get update +sudo apt-get install -y docker-ce + +#Installing pip +sudo apt-get install -y python-software-properties + +#Installing Docker compose +sudo pip install docker-compose + +#Starting ELK stack +docker-compose up \ No newline at end of file