Open NeilRickards opened 8 years ago
+1 This is blocking us as we want to pick up some of the latest changes that would help us do HA testing such as bringing a node up and down etc
As a temporary workaround, you can interact with this projectName
field in a different way (which works on 0.17.1):
private static DockerComposeRule docker = DockerComposeRule.builder()
.saveLogsTo(logsLocation(DemoPathTest.class))
.files(dockerComposeYamlFile(DemoPathTest.class))
.addClusterWait(WEB, SELENIUM)
.addAllClusterWaits(F10_STACK)
.addClusterWait(HADOOP, HDFS_PROXY)
.projectName(ProjectName.fromString("demopathtest"))
.build();
I've bumped to 0.17.1 and constructed a DockerComposeRule but it didn't make any difference. Looking at the code it's constructing the DockerComposeExecutable exactly the same.
I wonder if the version of the docker-compose
CLI is the problem here... I'm on 1.7.1
.
We are also on 1.7.1
@j-baker helped unblock us by correctly using docker-compose exec. This is no longer blocking us. I'll leave this open as think there is still an issue with the project name not being used
The projectName is being set on the DockerComposeExecutable:
But when I run
docker ps
there's still a random name:This is making it impossible to run
dockerCompose.exec
. It wasn't a problem in docker-compose-rule 0.5.2.See Salt PR 330 for more context