Amy Soetopo
08/22/2022, 11:59 PMdocker run -i -t \
-v /path/to/policy/dir:/policies \
-v /path/to/test/dir:/tests \
<http://ghcr.io/cerbos/cerbos:0.20.0|ghcr.io/cerbos/cerbos:0.20.0> compile --tests=/tests /policies
(from the docs, and of course, updated with paths to my policies and tests locally)
just an FYI, that the --format
flag is invalid? getting this error:
cerbos: error: unknown flag --format
Dennis (Cerbos)
08/23/2022, 12:15 AMdocker run -i -t \
-v /path/to/policy/dir:/policies \
-v /path/to/test/dir:/tests \
<http://ghcr.io/cerbos/cerbos:0.20.0|ghcr.io/cerbos/cerbos:0.20.0> compile --tests=/tests /policies
This works for me. What’s the error you’re getting?
The compile
command does not support the --format
flag, if I understand your question.Amy Soetopo
08/23/2022, 12:18 AMDennis (Cerbos)
08/23/2022, 12:19 AM-o, --output="tree" Output format (tree,list,json)
Amy Soetopo
08/23/2022, 12:23 AM