Skip to content

Commit fb44688

Browse files
authored
docs: NIC+NAP wafv5 install guide perm fix (#7760)
* docs: NIC+NAP wafv5 install guide perm fix Closes #7757 * Use `/tmp` folder on both the host and the docker image when compiling the waf policy bundle due to file permission handling differences between docker engine and docker desktop * Update the installation guide to reflect the new location of the waf policy bundle and downloaded source JSON * Change the destination of an mv to /Users/g.javorszky/Projects/NIC/kubernetes-ingress-docs instead of . * Fix a typo for the downloaded file name
1 parent a904881 commit fb44688

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

site/content/installation/installing-nic/deploy-with-nap-using-helm.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,25 @@ docker pull private-registry.nginx.com/nap/waf-compiler:5.6.0
4545
Download the [provided WAF Policy JSON](https://raw.githubusercontent.com/nginx/kubernetes-ingress/main/tests/data/ap-waf-v5/wafv5.json):
4646

4747
```shell
48-
curl -LO https://raw.githubusercontent.com/nginx/kubernetes-ingress/main/tests/data/ap-waf-v5/wafv5.json
48+
curl -L https://raw.githubusercontent.com/nginx/kubernetes-ingress/main/tests/data/ap-waf-v5/wafv5.json -o /tmp/wafv5.json
4949
```
5050

5151
Use your pulled NAP Docker image (`private-registry.nginx.com/nap/waf-compiler:5.6.0`) to compile the policy bundle:
5252

5353
```shell
5454
# Using your newly created image
5555
docker run --rm \
56-
-v $(pwd):$(pwd) \
56+
-v /tmp:/tmp \
5757
private-registry.nginx.com/nap/waf-compiler:5.6.0 \
58-
-p $(pwd)/wafv5.json \
59-
-o $(pwd)/compiled_policy.tgz
58+
-p /tmp/wafv5.json \
59+
-o /tmp/compiled_policy.tgz
60+
```
61+
62+
Move the downloaded JSON and compiled policy to your workspace:
63+
64+
```shell
65+
mv /tmp/wafv5.json $(pwd)/wafv5.json
66+
mv /tmp/compiled_policy.tgz $(pwd)/compiled_policy.tgz
6067
```
6168

6269
After this command, your workspace should contain:

0 commit comments

Comments
 (0)