Comments (4)
Got it solved, and the project is here: https://github.com/akauppi/etcd3-bench
- Add to libraryDependencies:
"com.whisk" %% "docker-testkit-impl-docker-java" % "0.9.0-RC3" % Test
- Mix
DockerKitDockerJava
into the test:
class SomeTest extends FlatSpec with Matchers with DockerEtcdV3Service with DockerTestKit with DockerKitDockerJava {
I'd leave editing the README
to the maintainers - I'm sure this will be handled once 0.9.0 becomes a true release. It would also be nice to have a short comparison there to see the pros/cons of using either DockerKitDockerJava
vs. DockerKitSpotify
. Thanks.
Using docker-it-scala
is again as easy as it was! :)
from docker-it-scala.
I think that there's two main java implementations of a docker client: spotify docker and docker java. I actually just realized this after reading through this PR. I have no idea of the pros and cons though. The spotify one's README is much clearer and approachable.
Luckily the tests have good examples to take from.
from docker-it-scala.
Yep, they are available as different artifacts that the customer project now explicitly needs to bring in. e.g.
"com.whisk" %% "docker-testkit-impl-docker-java" % ver
The samples in docker-it-scala seem to be more using the Spotify version.
What I'd like to see is a brief instruction for end users on the pros/cons of the two. Also, DockerTestKit
could use a self-class to highlight in compilation that it wants either of those classes to be brought in. Before 0.9.0, I think DockerTestKit
stood by itself. This, of course, would mean that DockerKitDockerJava
and the Spotify version would need to derive from a common tag trait.
from docker-it-scala.
I'm closing it now as there were few releases since and tests provide good idea on how to override a factory
from docker-it-scala.
Related Issues (20)
- Concurrency issues on logs
- No support for UDP?
- Timeout or Race condition resulting in Cannot run all required containers HOT 1
- Shutdown connection before running tests HOT 1
- Pulling image timeout gives an error message about not being able to pull windows image
- Publish v0.9.7 for 2.11 ? HOT 1
- Plans to publish a jar with shaded spotify docker-client? HOT 8
- Setup steps unclear HOT 2
- PostgresServiceSpec fails with driver libraries from 42 HOT 1
- Allow pausing/unpausing of containers in DockerExecutor
- Release for Scala 2.13 HOT 5
- run unpublished docker image with whisk labs docker-it-scala HOT 1
- Incompatible with ScalaTest's AsyncTestSuite
- Issues with SBT 1.3.x
- An image without a tag pulls all tags
- Persisting container across multiple test classes
- withUnlinkedDependencies not starting dependent container
- DockerContainer should have an option to configure withIpv6Address and withExtraHosts
- Missing release for docker-testkit-impl-docker-java 0.11.0 HOT 5
- Update in the GitHub Actions image's docker breaks docker-it-scala HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-it-scala.