Last active
March 26, 2020 07:29
-
-
Save subfission/d37fc067f3359fdc7843530f8ff5ad4a to your computer and use it in GitHub Desktop.
PatrowlManger and Client installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
echo "This will install PatrowlManger and Client" | |
read -p "Press return to continue..." | |
cd /opt | |
git clone https://github.com/Patrowl/PatrowlManager.git | |
git clone https://github.com/Patrowl/PatrowlEngines.git | |
cd PatrowlManager | |
echo "Enabling PostgreSQL data persistence" | |
sed -i 's/\s#//' docker-compose.yml | |
echo " | |
volumes: | |
postgres_data: | |
" >> docker-compose.yml | |
echo "Building containers" | |
docker-compose build --force-rm | |
docker-compose up | |
cd /opt/PatrowlEngines | |
echo "Configuration files are the JSON files and parameters are quite straightforward. For each engine, copy the <engine_name>.json.sample file to <engine_name>.json and edit the new file. Please refer to the README files from each engine directory." | |
echo "You will need to start each container once each JSON file is edited." | |
echo "done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment