Coder Social home page Coder Social logo

Comments (5)

viktortnk avatar viktortnk commented on August 28, 2024

Looks like you are using docker-java implementation on MacOS. Sorry, I have different environment setup these days. I'd recommend trying Spotify-based executor, at very least in that case I might be able to reproduce your steps

from docker-it-scala.

akauppi avatar akauppi commented on August 28, 2024

@michael-s-grant Hi, are you still having this problem?

I've got an environment similar to yours, and can maybe help. One thing that caught my eye is the val KafkaAdvertisedHost = "192.168.99.100". With macOS and docker-machine, this is often so but not necessarily always.

What do you get with:

$ docker-machine ip
192.168.99.100

from docker-it-scala.

michael-s-grant avatar michael-s-grant commented on August 28, 2024

@akauppi Thanks for your feedback. In response to your first question, since we needed something working back in October, I implemented a considerably more verbose and less elegant solution in Java instead. Now, we're moving towards getting Maven to run Docker containers for our system tests rather than have them started by the tests themselves, so we're less likely to be in this situation again; but it would still be good to know how to solve this problem, just in case.

And in response to your second question, the docker-machine is 192.168.99.100, in my case (though the command you suggested gives me an error "Error getting IP address: Something went wrong running an SSH command!", but this is demonstrably not critical as everything else I do to access the machine via this address, including the abovementioned Java workaround, works fine).

from docker-it-scala.

mdotson avatar mdotson commented on August 28, 2024

@michael-s-grant I think it'd be better for you to move your example to a real test that we can just copy and paste in. The example is incomplete, since you don't have zookeeper at all, and the container will certainly die given that it can't register with zookeeper. You may have zookeeper running from outside via docker run, but it's still much easier to reproduce given a full test.

from docker-it-scala.

viktortnk avatar viktortnk commented on August 28, 2024

I've just made working example for Kafka. https://github.com/viktortnk/docker-testkit-examples
Closing as there is no activity in this thread

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.