Skip to content
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

Local Deployer - Docker - Network property is being ignored #451

Open
lukas-schw opened this issue May 2, 2024 · 0 comments
Open

Local Deployer - Docker - Network property is being ignored #451

lukas-schw opened this issue May 2, 2024 · 0 comments
Labels
status/need-triage Team needs to triage and take a first look

Comments

@lukas-schw
Copy link

When using the local deployer to deploy a containerized application the network property for Docker (deployer.*.local.docker.network) is being ignored.
The cause for this seems to be, that in the DockerCommandBuilder constructor the dockerNetwork is set:

public DockerCommandBuilder(String dockerNetwork) {
this.dockerNetwork = dockerNetwork;
}

and then reused when building the execution command:
if (StringUtils.hasText(this.dockerNetwork)) {
commands.add("--network");
commands.add(this.dockerNetwork);
}

instead of using localDeployerProperties.getDocker().getNetwork() analogous to the other properties like volume mountings.

This problem was also already reported in the old local deployer repository: spring-cloud/spring-cloud-deployer-local#199 (comment)

@github-actions github-actions bot added the status/need-triage Team needs to triage and take a first look label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/need-triage Team needs to triage and take a first look
Projects
None yet
Development

No branches or pull requests

1 participant