You must have access to a Kubernetes cluster with Helm charts installed and the Docker engine must be running on your machine.
Run the following command to grab the latest binary:
{
name=$(curl -s https://api.github.com/repos/porter-dev/porter/releases/latest | grep "browser_download_url.*_Darwin_x86_64\.zip" | cut -d ":" -f 2,3 | tr -d \")
name=$(basename $name)
curl -L https://github.com/porter-dev/porter/releases/latest/download/$name --output $name
unzip -a $name
rm $name
}Then move the file into your bin:
chmod +x ./porter
sudo mv ./porter /usr/local/bin/porterRun the following command to grab the latest binary:
{
name=$(curl -s https://api.github.com/repos/porter-dev/porter/releases/latest | grep "browser_download_url.*_Linux_x86_64\.zip" | cut -d ":" -f 2,3 | tr -d \")
name=$(basename $name)
curl -L https://github.com/porter-dev/porter/releases/latest/download/$name --output $name
unzip -a $name
rm $name
}Then move the file into your bin:
chmod +x ./porter
sudo mv ./porter /usr/local/bin/porterGo here to download the Windows executable and add the binary to your PATH.
Note: the local setup process is tracked in issue #60, while the overall onboarding flow is tracked in issue #50.
To view Porter locally, you must have access to a Kubernetes cluster with Helm charts installed. The simplest way to run Porter is via porter start. This command will read the current-context that's set in your default kubeconfig (either by reading the $KUBECONFIG env variable or reading from $HOME/.kube/config). To view all options for start, type porter start --help. By default, the command performs the following steps:
- Requests an admin account is created and writes the result to the local keychain (Mac), wincred (Windows), or pass (Linux).
- Reads the default
kubeconfigand populates certificates required by the current context. - Starts Porter as a Docker container with a persistent storage volume attached (by default, the volume will be called
porter_sqlite).
You can pass a path to a kubeconfig file explicitly via:
porter start --kubeconfig path/to/kubeconfigYou can initialize Porter with a set of contexts by passing a context list to start. The contexts that Porter will be able to access are the same as kubectl config get-contexts. For example, if I had two contexts named minikube and staging, I would be able to visualize both of them via:
porter start --contexts minikube --contexts stagingTo skip setting the admin account and/or the kubeconfig, porter start provides the --insecure and --skip-kubeconfig options.