mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
The docker-compose plugin uses randomized auto-generated project names for test fixtures. This can cause issues on some platforms where it will generate an invalid identifier. This commit simply configures the plugin to use the gradle project name for docker compose.
This commit is contained in:
parent
b8af0f016b
commit
d86c0788a6
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ public class TestFixturesPlugin implements Plugin<Project> {
|
|||
maybeSkipTask(dockerSupport, buildFixture);
|
||||
|
||||
ComposeExtension composeExtension = project.getExtensions().getByType(ComposeExtension.class);
|
||||
composeExtension.setProjectName(project.getName());
|
||||
composeExtension.getUseComposeFiles().addAll(Collections.singletonList(DOCKER_COMPOSE_YML));
|
||||
composeExtension.getRemoveContainers().set(true);
|
||||
composeExtension.getCaptureContainersOutput()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue