-
Notifications
You must be signed in to change notification settings - Fork 27
installing minikube and injecting docker-env to other gradle tasks #160
Comments
You can already inject the environment as described at the end of the readme: https://github.com/GoogleContainerTools/minikube-build-tools-for-java/tree/master/minikube-gradle-plugin I suppose there is scope to expand that out to inject it into any Exec task -- but that seems specific, so I don't know. Currently I think you can do something like this:
Is there a reason that this wont be enough? I don't like the idea of anyone running the whole build as root -- but downloading and installing minikube could be helpful. @sageprice might have some insight into the cost of doing this. |
Yeah, whatever files the build creates, like any local build output and Gradle cache, they will be owned by root and most likely cause unwanted trouble. |
@loosebazooka few comments -
if you have more than one project that builds a docker image, you'll need to add more code.
i've already implemented this logic and we're using this in our integration tests. will you accept contribution? edit - |
Sorry we're slow on this. Yeah I guess I see what you're saying. I don't really see a problem in creating this task. So yes, a pull request is welcome, but please limit it to the task logic. As for the installer, can you elaborate how it would work (like will it look for updates? or will it just install latest whenever the user runs it?) Where we expect the executable to go -- should that be configured -- we can't expect everyone's CI to be the same, can users even write to /usr/local/bin? |
To run integration tests using this plugin, there's some additional gradle code that needs to be written -
i'd like to contribute these to make the plugin more integration-tests friendly. i suggest the following -
The text was updated successfully, but these errors were encountered: