-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepare.sh
30 lines (22 loc) · 838 Bytes
/
prepare.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
#Configure Docker-Compose
cp docker-compose.yml.spec docker-compose.yml.spec
echo "Paste your oinkcode for snort configuration:"
read OINKCODE
sed -i "s/<oinkcode>/${OINKCODE}/g" docker-compose.yml
echo "Type the administrator password for your splunk instance:"
read SPLUNK_PASSWORD
sed -i "s/<splunkpassword>/${SPLUNK_PASSWORD}/g" docker-compose.yml
#Create log files to avoid mounting issues:
mkdir -p ./log/pihole
touch ./log/pihole/pihole.log
touch ./log/pihole/pihole-FTL.log
touch ./log/pihole/access.log
touch ./log/pihole/error.log
mkdir -p ./log/snort
mkdir -p ./log/jump
touch ./log/jump/auth.log
#Compile images (this takes time. A lot of time.)
docker build -t jump ./images/jump/
docker build -t snort ./images/snort/
docker build -t splunk ./images/splunk/
echo "Done! Now run docker-compose up to fire it all up."