You have the following options to install the operator-builder CLI:
- Download the latest binary with your browser
- Download with wget
- Homebrew
- Docker Image
- Go Install
- Snap
Use wget to download the pre-compiled binaries:
VERSION=v0.7.0
OS=Linux
ARCH=x86_64
wget https://github.com/nukleros/operator-builder/releases/download/${VERSION}/operator-builder_${VERSION}_${OS}_${ARCH}.tar.gz -O - |\
tar -xz && sudo mv operator-builder /usr/local/bin/operator-builder
Available for Mac and Linux.
Using Homebrew
brew tap nukleros/tap
brew install nukleros/tap/operator-builder
docker pull ghcr.io/nukleros/operator-builder
docker run --rm -v "${PWD}":/workdir ghcr.io/nukleros/operator-builder [flags]
docker run --rm -it -v "${PWD}":/workdir --entrypoint sh ghcr.io/nukleros/operator-builder
It can be useful to have a bash function to avoid typing the whole docker command:
operator-builder() {
docker run --rm -i -v "${PWD}":/workdir ghcr.io/nukleros/operator-builder "$@"
}
go install github.com/nukleros/operator-builder/cmd/operator-builder@latest
NOTE: support for Snaps has been removed due to, what we feel, is increasingly unstable developer experience in publishing snaps. We can readdress this at such a time where stability to the project has returned. As of now, the latest available snap for operator-builder is v0.5.0.
Available for Linux only.
snap install operator-builder
NOTE:
operator-builder
installs with strict confinement in snap, this means it doesn't have direct access to root files.