-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request: would it be feasible to run regoTest opa in docker ? #41
Comments
Hi! Thanks for the idea. Initially, we were planning to create a task that would download OPA into hidden dir (think |
Like both the ideas, and I don't see them as mutually exclusive either. A configuration property to declare the runtime (native vs. docker) defaulting to native, and and option to automatically download the opa binary should it not be found on $PATH (or wherever the conf is pointing). This is especially nice in environments like github actions where you'd otherwise need a task just to download OPA before running your Gradle tasks. |
Just poking my head in because @tgeens raised this to me: |
Nice idea @vierbergenlars. |
Right now I'm downloading OPA from github releases using a custom ivy repository (a bit of a hack)
What do you think about that approach ? (Tangentially, I think there is something wrong with relative paths inside the |
IMO, as @anderseknert said we should have possibilities to run both native and docker. Configuration proposed by @lkadalski looks pretty straightforward. |
This request is ok. Will you prepare PR @tgeens ? |
Don't have time right now, might come back later. I will ping on this ticket when/if I start working on this. |
I opened a PR #94 with a first version that gives the plugin the ability to download OPA executable, it's almost complete I think... |
Would it make sense to run opa in a docker container instead ? Especially for build servers that would be very useful.
Yes, that would swap the requirement for opa with a requirement for docker, but that is pretty prevalent nowadays.
The text was updated successfully, but these errors were encountered: