Add build utils

This commit is contained in:
Dmitry Shulyak 2015-12-01 16:46:46 +02:00
parent 02f9a59ba5
commit bc796c356f

14
utils/docker_build.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
set -e
# should be executed from directory with required Dockerfile
name_w_tags=$1
if [[ -z "$name_w_tags" ]]; then
name_w_tags='solarproject/solar-celery:latest'
fi
echo "Building image with name $name_w_tags"
docker build -t "$name_w_tags" .
docker push "$name_w_tags"