mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-24 09:15:31 -06:00
docs: added bundles directory creation instructions (#5682)
Signed-off-by: Lama <lamo.boos@hotmail.com>
This commit is contained in:
@@ -28,6 +28,12 @@ This tutorial requires [Docker Compose](https://docs.docker.com/compose/install/
|
||||
|
||||
Create a policy that allows users to request their own salary as well as the salary of their direct subordinates.
|
||||
|
||||
**First** create a directory named `bundles` and cd into it.
|
||||
```sh
|
||||
mkdir bundles
|
||||
cd bundles
|
||||
```
|
||||
|
||||
**example.rego**:
|
||||
|
||||
```live:example:module:openable
|
||||
@@ -53,13 +59,14 @@ allow {
|
||||
}
|
||||
```
|
||||
|
||||
Then, build a bundle.
|
||||
**Then**, build a bundle.
|
||||
|
||||
```shell
|
||||
opa build example.rego
|
||||
cd ..
|
||||
```
|
||||
|
||||
You should now see a policy bundle (`bundle.tar.gz`) in your working directory.
|
||||
You should now see a policy bundle (`bundle.tar.gz`) in your working directory (`./bundles/bundle.tar.gz`).
|
||||
|
||||
### 2. Bootstrap the tutorial environment using Docker Compose.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user