Skip to content

Commit

Permalink
Merge pull request #399 from dshulyak/build_utils
Browse files Browse the repository at this point in the history
Add docker build util
  • Loading branch information
pigmej committed Dec 1, 2015
2 parents 060e69e + bc796c3 commit 42dc2e8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions utils/docker_build.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 42dc2e8

Please sign in to comment.