Last active
July 23, 2021 01:14
-
-
Save skylarbpayne/1d3b279e9019d6a022a09b3db5e551f4 to your computer and use it in GitHub Desktop.
Install kfctl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Taken from the book: "Kubeflow for Machine Learning: From Lab to Production" | |
# Provided as-is | |
PLATFORM=$(uname) | |
export PLATFORM | |
mkdir -p ~/bin | |
export KF_TAG=1.0.1 | |
KF_BASE="https://api.github.com/repos/kubeflow/kfctl/releases" | |
KFCTL_URL=$(curl -s ${KF_BASE} |\ | |
grep http |\ | |
grep "${KF_TAG}" |\ | |
grep -i "${PLATFORM}" |\ | |
cut -d : -f 2,3 |\ | |
tr -d '\" ' ) | |
wget "${KFCTL_URL}" | |
KFCTL_FILE=${KFCTL_URL##*/} | |
tar -xvf "${KFCTL_FILE}" | |
mv ./kfctl ~/bin/ | |
rm "${KFCTL_FILE}" | |
export PATH=$PATH:~/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment