GoogleContainerTools / minikube-build-tools-for-java

Minikube lifecycle management tools for Gradle and Maven.
Apache License 2.0
57 stars 27 forks source link

Add maven goal to inject project properties for minikube docker-env #157

Open loosebazooka opened 5 years ago

loosebazooka commented 5 years ago

Add a goal for minikube-maven-plugin to parse the result of minikube docker-env into maven project properties.

<execution>
  <id>read-minikube-docker-env</id>
  <goals>
    <goal>docker-env</goal>
  </goals>
</execution>

should read and inject the following into the project's properties

minikubeDockerEnv.DOCKER_TLS_VERIFY
minikubeDockerEnv.DOCKER_HOST
minikubeDockerEnv.DOCKER_CERT_PATH
minikubeDockerEnv.DOCKER_API_VERSION

Any plugin then interacting with a docker daemon can use these values directly in their configuration.