You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Note: there is no specific recommendation to use one of them, over the other, but we hear people using Spotify's one more often, so you might get better support for it*.
26
18
27
-
That makes it possible to configure it through enviroment variables
19
+
There are separate artifacts available for these libraries:
28
20
29
-
###docker-machine setup
21
+
**Spotify's docker-client**
30
22
31
-
Docker Toolbox 1.9 (maybe also before, came some time in 2015) contains the [`docker-machine`](https://docs.docker.com/machine/) command. With it, you get going simply by:
<!-- I like having '$' in shell commands shown in documentation. However, left them out here for consistency with the rest of the README. AKa010216 -->
You don't necessarily have to use `scalatest` dependency as demonstrated above.
38
+
You can create your custom bindings into your test environment, whether you use different initialisation technique or different framework.
39
+
Have a look at [this specific trait](https://github.com/whisklabs/docker-it-scala/blob/master/scalatest/src/main/scala/com/whisk/docker/scalatest/DockerTestKit.scala)
49
40
50
-
```
51
-
export DOCKER_HOST=tcp://127.0.0.1:2375
52
-
```
53
41
54
-
### Docker for Mac setup
42
+
### Overriding execution environment
43
+
44
+
If you need to have custom setup for you environment, you need to override `dockerFactory` field, providing `DockerClient` instance
55
45
56
-
Since version `0.9.0-M2` you can use implementation with Spotify's [docker-client](https://github.com/spotify/docker-client) in Docker for Mac setup as it works better with unix socket
You can check [usage example](https://github.com/whisklabs/docker-it-scala/blob/master/scalatest/src/test/scala/com/whisk/docker/MongodbServiceSpec.scala)
111
+
135
112
## Typesafe Configuration
136
113
137
114
`docker-testkit-config` enables you to use a typesafe config to
0 commit comments