blob: 08e3476928dbfadec9d250cd4721c072e65e22b4 [file] [log] [blame]
Sergiusz Bazanski1663e0e2019-07-21 16:25:07 +02001#!/usr/bin/env bash
2
3set -e -o pipefail
4
5if [ -z "$hscloud_root" ]; then
6 echo 2>&1 "Please first source env.sh"
7 exit 1
8fi
9
10cd "${hscloud_root}"
11
Sergiusz Bazanski654c70d2019-07-23 01:33:50 +020012bazel build \
13 //cluster/tools:kubectl \
14 //cluster/tools:kubecfg \
15 //cluster/tools:calicoctl \
16 //cluster/tools:cfssl
Sergiusz Bazanski1663e0e2019-07-21 16:25:07 +020017
18if [ ! -e /nix ] ; then
19 echo "WARNING: No Nix installation detected. nix-dependent tools (nixops) will not be built or available."
20else
21 bazel build \
22 //cluster/tools:nixops
23fi