From 1fcb0019b95d619eb0da8a68dd5980bf0223b606 Mon Sep 17 00:00:00 2001 From: Oleg Anashkin Date: Wed, 4 Nov 2015 11:37:08 -0800 Subject: [PATCH] Fix running mesos-docker configuration on Darwin When following https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/mesos-docker.md guide on Mac it builds binaries under Darwin platform, therefore km/build.sh can't find km binary because it was only looking for Linux. This change makes it also look for Darwin binaries too. --- cluster/mesos/docker/km/build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cluster/mesos/docker/km/build.sh b/cluster/mesos/docker/km/build.sh index dd35331746c..f3725142675 100755 --- a/cluster/mesos/docker/km/build.sh +++ b/cluster/mesos/docker/km/build.sh @@ -41,8 +41,11 @@ find-binary() { km_path=$(find-binary km linux/amd64) if [ -z "$km_path" ]; then - echo "Failed to find km binary" 1>&2 - exit 1 + km_path=$(find-binary km darwin/amd64) + if [ -z "$km_path" ]; then + echo "Failed to find km binary" 1>&2 + exit 1 + fi fi kube_bin_path=$(dirname ${km_path}) common_bin_path=$(cd ${script_dir}/../common/bin && pwd -P)