1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-18 21:42:16 +00:00

Moved files out of the root of the project to bin and deploy where they belong

This commit is contained in:
2018-01-09 07:58:37 -05:00
parent d88000f06a
commit a36a083826
17 changed files with 55 additions and 53 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash -e
project_dir="$(dirname $( dirname $(readlink -f ${BASH_SOURCE[0]})))"
if [ $# != 1 ]; then
echo "Please enter docker image name for the rails development environment"
exit 1
fi
docker build -t $1 -f ${project_dir}/deploy/rails-prod-Dockerfile ${project_dir}/.
#Kill and remove containers gracefully without error if none are running
docker ps | grep "Exit" | awk '{print $1}' | while read -r id ; do
docker kill $id
done