1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-24 17:04:43 +00:00

Containers do not need removed just killed

This commit is contained in:
2016-02-03 19:02:30 +00:00
parent 42a5215d34
commit 57c4191562
2 changed files with 2 additions and 8 deletions

View File

@@ -12,8 +12,5 @@ docker build -t $1 -f rails-prod-Dockerfile .
docker ps | grep "Exit" | awk '{print $1}' | while read -r id ; do
docker kill $id
done
docker ps -a | grep "Exit" | awk '{print $1}' | while read -r id ; do
docker rm $id
done
docker run -h $HOSTNAME --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -v /srv/docker/apache2/logs:/var/log/apache2 -v /etc/localtime:/etc/localtime -p 80:80 -p 443:443 $1
docker run -h $HOSTNAME -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -v /srv/docker/apache2/logs:/var/log/apache2 -v /etc/localtime:/etc/localtime -p 80:80 -p 443:443 $1

View File

@@ -12,8 +12,5 @@ docker build -t $1 -f rails-prod-Dockerfile .
docker ps | grep "Exit" | awk '{print $1}' | while read -r id ; do
docker kill $id
done
docker ps -a | grep "Exit" | awk '{print $1}' | while read -r id ; do
docker rm $id
done
docker run -h $HOSTNAME --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -v /etc/localtime:/etc/localtime $1 bundle exec rake jobs:work RAILS_ENV=production
docker run -h $HOSTNAME -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -v /etc/localtime:/etc/localtime $1 bundle exec rake jobs:work RAILS_ENV=production