You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# shellcheck disable=SC1090
|
|
|
|
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
|
|
|
|
|
|
|
APP=minikube
|
|
|
|
VERSION=${VERSION:-v1.18.1}
|
|
|
|
APPS_DIR=/usr/local/apps/${APP}
|
|
|
|
URL=https://github.com/kubernetes/minikube/releases/download/${VERSION}/minikube-$(get_os)-$(get_arch).tar.gz
|
|
|
|
|
|
|
|
extract_tarball "${URL}" "${APPS_DIR}/${VERSION}" "--strip-components 1" sudo
|
|
|
|
sudo chown --recursive root:root "${APPS_DIR}/${VERSION}"
|
|
|
|
set_current_link "${APPS_DIR}" "${VERSION}" sudo
|
|
|
|
|
|
|
|
cd /usr/local/bin
|
|
|
|
if [[ ! -L minikube ]]; then
|
|
|
|
sudo ln --symbolic \
|
|
|
|
"$(relative_path "/usr/local/bin" "${APPS_DIR}/current/minikube-linux-amd64")" \
|
|
|
|
minikube
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ ! -L docker-machine-driver-kvm2 ]]; then
|
|
|
|
sudo ln --symbolic \
|
|
|
|
"$(relative_path "/usr/local/bin" "${APPS_DIR}/current/docker-machine-driver-kvm2")" \
|
|
|
|
docker-machine-driver-kvm2
|
|
|
|
fi
|