Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
30 changes: 30 additions & 0 deletions rpi-docker-elk-installation.sh
Original file line number Diff line number Diff line change
@@ -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