Changing the util.sh to build kubernetes binaries locally.

pull/6/head
Matt Bruzek 2015-05-28 11:08:09 -05:00
parent 6ffe46a9e0
commit e013541573
1 changed files with 10 additions and 0 deletions

View File

@ -30,11 +30,21 @@ function verify-prereqs() {
gather_installation_reqs
}
function build-local() {
# Build the binaries locally that are used in the charms.
make all WHAT="cmd/kube-apiserver cmd/kubectl cmd/kube-controller-manager plugin/cmd/kube-scheduler cmd/kubelet cmd/kube-proxy"
OUTPUT_DIR=_output/local/bin/linux/amd64
mkdir -p cluster/juju/charms/trusty/kubernetes-master/files/output
# Copy the binary output to the charm directory.
cp -v $OUTPUT_DIR/* cluster/juju/charms/trusty/kubernetes-master/files/output
}
function get-password() {
echo "TODO: Assign username/password security"
}
function kube-up() {
build-local
if [[ -d "~/.juju/current-env" ]]; then
juju quickstart -i --no-browser
else