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

pull/6/head
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
# necessary on Mac OS X with boot2docker.
set -e
source $(dirname $0)/common.sh
source $(dirname "${BASH_SOURCE}")/common.sh
kube::build::verify_prereqs
kube::build::copy_output

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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