minikube-build-tools-for-java icon indicating copy to clipboard operation
minikube-build-tools-for-java copied to clipboard

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

Open loosebazooka opened this issue 6 years ago • 0 comments

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.

loosebazooka avatar Jun 04 '19 20:06 loosebazooka