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