The following section describes how to install Enterprise OPA.
macOS and Linux
On macOS and Linux,
brew is the preferred install option, as updates to Enterprise OPA will be handled automatically.
brew install styrainc/packages/eopa
Windows and macOS binaries are provided for convenience and exploration. Only Linux binaries and container images are supported for use in production environments.
Once you have downloaded and installed an Enterprise OPA binary in your
$PATH, you can verify the installation by running the following command:
Container images are published in GitHub Container Registry and tagged for each release. Image tags correspond to the release version. See the GitHub package for the latest images.
docker pull ghcr.io/styrainc/enterprise-opa:VERSION
If you are testing out Enterprise OPA in a non production environment, you might find the
latest tag convenient:
docker pull ghcr.io/styrainc/enterprise-opa:latest
You can replicate these images to a registry nearer your cluster to reduce cold start times. This is especially important when:
- Running in an environment without access to pull images from GitHub Container Registry.
- Not using a long-running deployment of Enterprise OPA (for example,
eopa evalin jobs).
- Enterprise OPA instance startup time is critical.
To run Enterprise OPA in a Kubernetes cluster, please see deployment documentation.
Enterprise OPA is available as a Go module and can be integrated as a library. To obtain the source for the Go module please contact us. To add the the Go module to your application, extract the tarball that you received into your application's source tree under a new directory.
mkdir -p eopa
tar xzvf /path/to/eopa.tar.gz –strip-component=1 -C eopa
Then add the following lines to your application's
require github.com/styrainc/enterprise-opa-private v1.8.0
replace github.com/styrainc/enterprise-opa-private => ./eopa