Skip to content

Configure Docker host in build plugins #23400

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

Closed
scottfrederick opened this issue Sep 17, 2020 · 0 comments
Closed

Configure Docker host in build plugins #23400

scottfrederick opened this issue Sep 17, 2020 · 0 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@scottfrederick
Copy link
Contributor

scottfrederick commented Sep 17, 2020

The Maven and Gradle plugins will use the values of DOCKER_HOST, DOCKER_TLS_VERIFY, and DOCKER_CERT_PATH environment variables to connect to a remote Docker daemon. These environment variables are convenient when using minikube, but it would also be nice if the connection details could be specified in the build plugin configuration as an alternative to the environment.

With Gradle:

bootBuildImage {
    docker {
        host = "tcp://192.168.99.100:2376"
        tlsVerify = true
        certPath = "/home/user/.minikube/certs"
    }
}

With Maven:

	<plugin>
	    <groupId>org.springframework.boot</groupId>
	    <artifactId>spring-boot-maven-plugin</artifactId>
	    <configuration>
	        <docker>
	            <host>tcp://192.168.99.100:2376</host>
	            <tlsVerify>true</tlsVerify>
	            <certPath>/home/user/.minikube/certs</certPath>
	        </docker>
	    </configuration>
	</plugin>
@scottfrederick scottfrederick added the type: enhancement A general enhancement label Sep 17, 2020
@scottfrederick scottfrederick added this to the 2.4.x milestone Sep 17, 2020
@scottfrederick scottfrederick self-assigned this Sep 17, 2020
@scottfrederick scottfrederick modified the milestones: 2.4.x, 2.4.0-RC1 Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant