mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-09 08:26:47 +00:00
Add pro installer for sponsors
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
parent
2adc1350d4
commit
e59e3f0cb6
37
hack/install-pro.sh
Normal file
37
hack/install-pro.sh
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$EUID" -ne 0 ]; then
|
||||||
|
echo "Please run as root or with sudo"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "1. Downloading OCI image, and installing pre-requisites"
|
||||||
|
echo ""
|
||||||
|
if [ ! -x "$(command -v arkade)" ]; then
|
||||||
|
curl -sLS https://get.arkade.dev | sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
PATH=$PATH:$HOME/.arkade/bin
|
||||||
|
if [ ! -x "$(command -v crane)" ]; then
|
||||||
|
arkade get crane
|
||||||
|
fi
|
||||||
|
|
||||||
|
tmpdir=$(mktemp -d)
|
||||||
|
|
||||||
|
arkade oci install --path ${tmpdir} \
|
||||||
|
ghcr.io/openfaasltd/faasd-pro:latest
|
||||||
|
|
||||||
|
cd ${tmpdir}
|
||||||
|
./install.sh ./
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "2. You now need to activate your license via GitHub"
|
||||||
|
echo ""
|
||||||
|
echo "sudo -E faasd github login"
|
||||||
|
echo "sudo -E faasd activate"
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
echo "3. Then perform the final installation steps"
|
||||||
|
echo ""
|
||||||
|
echo "sudo -E sh -c \"cd ${tmpdir}/var/lib/faasd && faasd install\""
|
||||||
|
echo ""
|
Loading…
x
Reference in New Issue
Block a user