OPA Docker local policy watch not working on MAC #744
-
|
Hello There! I have question, I have a deployed OPA Server using a docker-compose and mounted the policies in a /policies folder like this: Now, when I change a policy file in the I'm running it using a MacBook and editing the files through IntelliJ. The docker containers is running inside a VM using colima. Has anyone faced this issue, and is there some workarounds for it, is something wrong with my configuration? I read some stuff regarding the autosave from IntelliJ and how it might affect the file change "notification", but when I changed the file using VIM the reload didn't worked either. Thanks for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I suppose this is a shortcoming in inotify and how it's supposed to watch a directory for changes. I guess with these many layers involved, the update notifications just don't happen. As for workarounds, you could run OPA on your machine as a native macOS binary. Alternatively, you could set up some scripting to update your policies on changes, with tools like |
Beta Was this translation helpful? Give feedback.
I suppose this is a shortcoming in inotify and how it's supposed to watch a directory for changes. I guess with these many layers involved, the update notifications just don't happen.
As for workarounds, you could run OPA on your machine as a native macOS binary. Alternatively, you could set up some scripting to update your policies on changes, with tools like
entrandcurl.