Comments (5)
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.
@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.
@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.
@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.
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)
- 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.