Skip to content

Commit

Permalink
Have build/make-cross.sh copy binaries back over if using boot2docker.
Browse files Browse the repository at this point in the history
Also clarified error message in cluster/kubecfg.sh.
  • Loading branch information
jbeda committed Oct 11, 2014
1 parent 695fbee commit b2395c7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions build/make-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ source "$KUBE_ROOT/build/common.sh"
kube::build::verify_prereqs
kube::build::build_image
kube::build::run_build_command build/build-image/make-binaries.sh "$@"
kube::build::copy_output
1 change: 1 addition & 0 deletions build/make-cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ source "$KUBE_ROOT/build/common.sh"
kube::build::verify_prereqs
kube::build::build_image
kube::build::run_build_command build/build-image/make-cross.sh
kube::build::copy_output
17 changes: 11 additions & 6 deletions cluster/kubecfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,18 @@ kubecfg="${KUBE_ROOT}/_output/build/${host_os}/${host_arch}/kubecfg"
if [[ ! -x "$kubecfg" ]]; then
kubecfg="${KUBE_ROOT}/platforms/${host_os}/${host_arch}/kubecfg"
fi

if [[ ! -x "$kubecfg" ]]; then
echo "It looks as if you don't have a compiled version of Kubernetes. If you" >&2
echo "are running from a clone of the git repo, please run ./build/make-cross.sh." >&2
echo "Note that this requires having Docker installed. If you are running " >&2
echo "from a release tarball, something is wrong. Look at " >&2
echo "http://kubernetes.io/ for information on how to contact the "
echo "development team for help." >&2
{
echo "It looks as if you don't have a compiled kubecfg binary."
echo
echo "If you are running from a clone of the git repo, please run"
echo "'./build/make-cross.sh'. Note that this requires having Docker installed."
echo
echo "If you are running from a binary release tarball, something is wrong. "
echo "Look at http://kubernetes.io/ for information on how to contact the "
echo "development team for help."
} >&2
exit 1
fi

Expand Down

0 comments on commit b2395c7

Please sign in to comment.