Coder Social home page Coder Social logo

Comments (4)

akauppi avatar akauppi commented on July 24, 2024

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.

mdotson avatar mdotson commented on July 24, 2024

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.

akauppi avatar akauppi commented on July 24, 2024

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.

viktortnk avatar viktortnk commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.