From df1f4a2f06bdedca91fd221dc936d03727bbccbf Mon Sep 17 00:00:00 2001 From: Lama Date: Wed, 22 Feb 2023 13:22:34 +0300 Subject: [PATCH] docs: added bundles directory creation instructions (#5682) Signed-off-by: Lama --- docs/content/http-api-authorization.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/content/http-api-authorization.md b/docs/content/http-api-authorization.md index b241bd2de5..83d34afa53 100644 --- a/docs/content/http-api-authorization.md +++ b/docs/content/http-api-authorization.md @@ -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.