Last active
February 28, 2022 20:06
-
-
Save evankanderson/3c67fb1452b4c5172997217bf16387e2 to your computer and use it in GitHub Desktop.
Kn plugin func binary research install script
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
#!/bin/sh | |
# Assumes Docker desktop installed | |
# | |
VARIANT="$(uname -sm | tr 'A-Z ' 'a-z-' | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)" | |
FUNC_VARIANT="$(echo $VARIANT | tr '-' '_')" | |
curl -L -o kn https://github.com/knative/client/releases/download/knative-v1.2.0/kn-$VARIANT | |
curl -L -o kn-plugin-quickstart https://github.com/knative-sandbox/kn-plugin-quickstart/releases/download/knative-v1.2.0/kn-quickstart-$VARIANT | |
curl -L -o kn-plugin-func https://github.com/knative-sandbox/kn-plugin-func/releases/download/v0.22.0/func_$FUNC_VARIANT | |
chmod +x kn kn-plugin-quickstart kn-plugin-func | |
./kn-plugin-quickstart kind | |
echo 'export PATH=$PATH:'"$PWD" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment