@@ -18,21 +18,26 @@ class DockerConfigSpec extends FlatSpec with Matchers with DockerKitConfig {
18
18
.withPorts(9042 -> None )
19
19
.withReadyChecker(DockerReadyChecker .LogLineContains (" Starting listening for CQL clients on" ))
20
20
.withVolumes(volumes)
21
+ .withHostConfig(HostConfig (None , None , None ))
21
22
22
23
configureDockerContainer(" docker.cassandra" ) shouldBe cassandraExpected
23
24
24
25
val postgresExpected = DockerContainer (" postgres:9.4.4" )
25
26
.withPorts((5432 , None ))
26
27
.withEnv(s " POSTGRES_USER=nph " , s " POSTGRES_PASSWORD=suitup " )
27
28
.withReadyChecker(
28
- DockerReadyChecker .LogLineContains (" database system is ready to accept connections" ))
29
+ DockerReadyChecker .LogLineContains (" database system is ready to accept connections" )
30
+ )
31
+ .withHostConfig(HostConfig (None , None , None ))
32
+
29
33
30
34
configureDockerContainer(" docker.postgres" ) shouldBe postgresExpected
31
35
32
36
val mongodbExpected = DockerContainer (" mongo:3.0.6" )
33
37
.withPorts(27017 -> None )
34
38
.withReadyChecker(DockerReadyChecker .LogLineContains (" waiting for connections on port" ))
35
39
.withCommand(" mongod" , " --nojournal" , " --smallfiles" , " --syncdelay" , " 0" )
40
+ .withHostConfig(HostConfig (None , None , None ))
36
41
37
42
configureDockerContainer(" docker.mongodb" ) shouldBe mongodbExpected
38
43
@@ -44,7 +49,8 @@ class DockerConfigSpec extends FlatSpec with Matchers with DockerKitConfig {
44
49
DockerReadyChecker
45
50
.HttpResponseCode (9200 , " /" )
46
51
.within(100 .millis)
47
- .looped(20 , 1250 .millis))
52
+ .looped(20 , 1250 .millis)
53
+ )
48
54
49
55
configureDockerContainer(" docker.elasticsearch" ) shouldBe elasticExpected
50
56
}
0 commit comments