https://cerbos.dev logo
#help
Title
# help
b

Brandon Choe

12/01/2023, 6:04 PM
hi 👋. I'm looking to start testing my Cerbos policies. however, I'm running into an unexpected issue. I'm running the following command from the docs to compile the policies:
Copy code
docker run -i -t -v policies <http://ghcr.io/cerbos/cerbos:0.32.0|ghcr.io/cerbos/cerbos:0.32.0> compile /policies
and I'm getting the following result:
Copy code
Test results

0 tests executed
this is unexpected because I tried to add a compilation error to see if this command would catch it. what could be considered a compilation error? I tried removing required properties, like
resource
from resourcePolicy.
c

Charith (Cerbos)

12/01/2023, 6:19 PM
Hey, I think it's because you're not mounting your policy directory into the container. If your policies are in the current directory, the
-v
argument should look like
-v $(pwd):/policies
b

Brandon Choe

12/02/2023, 12:48 AM
awesome thank you!