Skip to content

Instantly share code, notes, and snippets.

@Streek
Created May 2, 2017 22:41
Show Gist options
  • Select an option

  • Save Streek/cf6a6ced384fcdf1f3ef00ab8e9b3830 to your computer and use it in GitHub Desktop.

Select an option

Save Streek/cf6a6ced384fcdf1f3ef00ab8e9b3830 to your computer and use it in GitHub Desktop.
Start all Prospectify.io docker containers.
#!/bin/bash
echo "Operating on PIO containers..."
if [[ $1 == "s" || $1 == "start" ]]; then
echo "--Starting PIO Containers--"
docker start piopgapp
docker start piopgdata
echo "Containers Started..."
fi
if [[ $1 == "e" || $1 == "k" || $1 == "kill" || $1 == "stop" || $1 == "end" ]]; then
echo "--Killing PIO Containers--"
docker stop piopgapp
docker stop piopgdata
echo "Containers Killed..."
fi
echo "...Operation Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment