Normalize some of the boilerplate in each of the build commands.

This commit is contained in:
Joe Beda 2014-10-01 09:41:44 -07:00
parent 7a2d8fd01a
commit 428a653ffb
10 changed files with 10 additions and 30 deletions

View File

@ -19,9 +19,7 @@
# This is a no-op on Linux when the Docker daemon is local. This is only # This is a no-op on Linux when the Docker daemon is local. This is only
# necessary on Mac OS X with boot2docker. # necessary on Mac OS X with boot2docker.
set -e source $(dirname "${BASH_SOURCE}")/common.sh
source $(dirname $0)/common.sh
kube::build::verify_prereqs kube::build::verify_prereqs
kube::build::copy_output kube::build::copy_output

View File

@ -19,9 +19,7 @@
# This makes the docker build image, builds the binaries and copies them out # This makes the docker build image, builds the binaries and copies them out
# of the docker container. # of the docker container.
set -e source $(dirname "${BASH_SOURCE}")/common.sh
source $(dirname $0)/common.sh
kube::build::verify_prereqs kube::build::verify_prereqs
kube::build::build_image kube::build::build_image

View File

@ -21,9 +21,7 @@
# directory. It will then copy over the Dockerfile and build the kube-build # directory. It will then copy over the Dockerfile and build the kube-build
# image. # image.
set -e source $(dirname "${BASH_SOURCE}")/common.sh
source $(dirname $0)/common.sh
kube::build::verify_prereqs kube::build::verify_prereqs
kube::build::build_image kube::build::build_image

View File

@ -16,9 +16,7 @@
# Clean out the output directory on the docker host. # Clean out the output directory on the docker host.
set -e source $(dirname "${BASH_SOURCE}")/common.sh
source $(dirname $0)/common.sh
kube::build::verify_prereqs kube::build::verify_prereqs
kube::build::clean_output kube::build::clean_output

View File

@ -19,9 +19,7 @@
# This makes the docker build image, builds the cross binaries and copies them # This makes the docker build image, builds the cross binaries and copies them
# out of the docker container. # out of the docker container.
set -e source $(dirname "${BASH_SOURCE}")/common.sh
source $(dirname $0)/common.sh
kube::build::verify_prereqs kube::build::verify_prereqs
kube::build::build_image kube::build::build_image

View File

@ -19,9 +19,7 @@
# This script will make the 'run image' after building all of the necessary # This script will make the 'run image' after building all of the necessary
# binaries. # binaries.
set -e source $(dirname "${BASH_SOURCE}")/common.sh
source $(dirname $0)/common.sh
kube::build::verify_prereqs kube::build::verify_prereqs
kube::build::build_image kube::build::build_image

View File

@ -18,9 +18,7 @@
# images and other build artifacts. All intermediate artifacts will be hosted # images and other build artifacts. All intermediate artifacts will be hosted
# publicly on Google Cloud Storage currently. # publicly on Google Cloud Storage currently.
set -e source $(dirname "${BASH_SOURCE}")/common.sh
source $(dirname $0)/common.sh
kube::build::verify_prereqs kube::build::verify_prereqs
kube::build::build_image kube::build::build_image

View File

@ -16,9 +16,7 @@
# Run the integration test. # Run the integration test.
set -e source $(dirname "${BASH_SOURCE}")/common.sh
source $(dirname $0)/common.sh
kube::build::verify_prereqs kube::build::verify_prereqs
kube::build::build_image kube::build::build_image

View File

@ -16,9 +16,7 @@
# Run all of the golang unit tests. # Run all of the golang unit tests.
set -e source $(dirname "${BASH_SOURCE}")/common.sh
source $(dirname $0)/common.sh
kube::build::verify_prereqs kube::build::verify_prereqs
kube::build::build_image kube::build::build_image

View File

@ -18,9 +18,7 @@
# #
# This container will have a snapshot of the current sources. # This container will have a snapshot of the current sources.
set -e source $(dirname "${BASH_SOURCE}")/common.sh
source $(dirname $0)/common.sh
kube::build::verify_prereqs kube::build::verify_prereqs
kube::build::build_image kube::build::build_image