Skip to content

Instantly share code, notes, and snippets.

@subfission
Last active March 26, 2020 07:29
Show Gist options
  • Save subfission/d37fc067f3359fdc7843530f8ff5ad4a to your computer and use it in GitHub Desktop.
Save subfission/d37fc067f3359fdc7843530f8ff5ad4a to your computer and use it in GitHub Desktop.
PatrowlManger and Client installer
#!/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