opa icon indicating copy to clipboard operation
opa copied to clipboard

Documentation request - Docker config-file

Open hutchins opened this issue 1 year ago • 1 comments

Documentation Update Request

Please update documentation to include how to use/pass a config-file yaml with docker hub opa image https://hub.docker.com/r/openpolicyagent/opa

Ideal solution

Ideally it would be as easy as -v /local/path/to/config.yaml:/container/opapath/to/config.yaml

hutchins avatar Aug 09 '22 17:08 hutchins

Hi @hutchins! Are you referring to the OPA Docker plugin for authorization? Or just want to mount a config file into the regular OPA container?

anderseknert avatar Aug 09 '22 18:08 anderseknert

Just how to mount a config file for OPA.

hutchins avatar Aug 18 '22 01:08 hutchins

Alright! Your ideal solution is pretty much it :)

docker run -it --rm -p 8181:8181 -v ${PWD}:/conf  openpolicyagent/opa run --server --config-file=/conf/opa-conf.yaml

anderseknert avatar Aug 18 '22 08:08 anderseknert

Did you get it to work, @hutchins ?

anderseknert avatar Aug 29 '22 07:08 anderseknert

Let me know if we should re-open this. Closing for now.

anderseknert avatar Sep 01 '22 19:09 anderseknert