11docker-it-scala
22=============
33
4- [ ![ Build Status] ( https://travis-ci.org/whisklabs/docker-it-scala.svg?branch=master )] ( https://travis-ci.org/whisklabs/docker-it-scala )
54[ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/com.whisk/docker-testkit-core_2.12/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.whisk/docker-testkit-core_2.12 )
65[ ![ Join the chat at https://gitter.im/whisklabs/docker-it-scala ] ( https://badges.gitter.im/Join%20Chat.svg )] ( https://gitter.im/whisklabs/docker-it-scala?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge )
76
@@ -23,16 +22,16 @@ There are separate artifacts available for these libraries:
2322
2423``` scala
2524libraryDependencies ++= Seq (
26- " com.whisk" %% " docker-testkit-scalatest" % " 0.9.5 " % " test" ,
27- " com.whisk" %% " docker-testkit-impl-spotify" % " 0.9.5 " % " test" )
25+ " com.whisk" %% " docker-testkit-scalatest" % " 0.9.9 " % " test" ,
26+ " com.whisk" %% " docker-testkit-impl-spotify" % " 0.9.9 " % " test" )
2827```
2928
3029** docker-java**
3130
3231``` scala
3332libraryDependencies ++= Seq (
34- " com.whisk" %% " docker-testkit-scalatest" % " 0.9.5 " % " test" ,
35- " com.whisk" %% " docker-testkit-impl-docker-java" % " 0.9.5 " % " test" )
33+ " com.whisk" %% " docker-testkit-scalatest" % " 0.9.9 " % " test" ,
34+ " com.whisk" %% " docker-testkit-impl-docker-java" % " 0.9.9 " % " test" )
3635```
3736
3837You don't necessarily have to use ` scalatest ` dependency as demonstrated above.
@@ -42,7 +41,7 @@ Have a look at [this specific trait](https://github.com/whisklabs/docker-it-scal
4241
4342### Overriding execution environment
4443
45- If you need to have custom setup for you environment, you need to override ` dockerFactory ` field, providing ` DockerClient ` instance
44+ If you need to have a custom environment setup , you need to override ` dockerFactory ` field, providing ` DockerClient ` instance
4645
4746``` scala
4847import com .spotify .docker .client .{DefaultDockerClient , DockerClient }
@@ -154,10 +153,14 @@ trait DockerMongodbService extends DockerKitConfig {
154153### Fields
155154
156155- ` image-name ` required (String)
156+ - ` container-name ` optional (String)
157+ - ` command ` optional (Array of Strings)
158+ - ` entrypoint ` optional (Array of Strings)
157159- ` environmental-variables ` optional (Array of Strings)
158160- ` ready-checker ` optional structure
159161 - ` log-line ` optional (String)
160162 - ` http-response-code `
163+ - ` code ` optional (Int - defaults to ` 200 ` )
161164 - ` port ` required (Int)
162165 - `path` optional (String - defaults to `/`)
163166 - `within` optional (Int)
@@ -172,6 +175,8 @@ trait DockerMongodbService extends DockerKitConfig {
172175 - ` container ` required (String)
173176 - ` host ` required (String)
174177 - ` rw ` optional (Boolean - default: false )
178+ - ` memory ` optional (Long)
179+ - ` memory-reservation ` optional (Long)
175180
176181# Testkit
177182
@@ -197,7 +202,7 @@ class MyMongoSpec extends FlatSpec with Matchers with DockerMongodbService {
197202class AllAtOnceSpec extends FlatSpec with Matchers with BeforeAndAfterAll with GivenWhenThen with ScalaFutures
198203 with DockerElasticsearchService with DockerCassandraService with DockerNeo4jService with DockerMongodbService {
199204
200- implicit val pc = PatienceConfig (Span (20 , Seconds ), Span (1 , Second ))
205+ implicit val pc : PatienceConfig = PatienceConfig (Span (20 , Seconds ), Span (1 , Second ))
201206
202207 " all containers" should " be ready at the same time" in {
203208 dockerContainers.map(_.image).foreach(println)
0 commit comments