-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap.sh
executable file
·33 lines (28 loc) · 927 Bytes
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e
echo "Installing and starting the IDS playground."
echo "Unless you really know what you are doing, this script should probably only be run in a VM"
echo "Sleeping for 10 seconds to allow you to Ctl-c this script"
sleep 10
echo "Installing"
# Install docker
if [[ $(which docker) == "" ]]; then
# TODO docker changed the way it was supposed to install
# make sure to update that here
curl -sSL https://get.docker.com/ | sh
# Add the vagant user to the docker group
sudo usermod -aG docker vagrant
fi
# Install pip and docker-compose
if [[ $(which docker-compose) == "" ]]; then
sudo apt-get update
sudo apt-get install -y python-setuptools
sudo easy_install pip
sudo pip install docker-compose
fi
# Start up our ELK stack
cd /vagrant/docker-elk && ./run.sh
# Install osquery
cd /vagrant/osquery && make install
# Install suricata
cd /vagrant/suricata && make install