Coder Social home page Coder Social logo

dockertest's People

Contributors

codermarcel avatar docmerlin avatar fortytw2 avatar gregoriokusowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dockertest's Issues

Container doesn't run

I have a project named Gorsk that uses dockertest for database tests.

It ran all fine until 2020-01-06. I tested it today, the tests won't run and it waits endlessly.

I assume something changed on Docker, but can't tell precisely what.

Support docker-machine's that are not running at localhost.

When using docker on OSX (installed via homebrew), the docker run command makes the container available at docker-machine ip NAME - but not on localhost.

docker-for-mac is already prepared to make the container available in localhost, but in order to support docker-machine, dockertest should allow custom hosts.

#2 is using the DOCKER_MACHINE_NAME env variable to lookup for the current docker-machine host, otherwise it will fallback to localhost.

Don't depend on DOCKER_MACHINE_NAME

Hello,

looking at docker-machine env, there's also DOCKER_HOST available;

set -x DOCKER_HOST tcp://192.168.99.102:2376;

It should be trivial to use this instead, removing the dependency on docker-machine. Alternatively, it might be (somehow) useful to set the hostname by hand.

Edit: At least partially it can be done with a -H option for docker run and ignoring the hostname part from the hostname:port address passed to the health check. Not optimal, but it is a work-around.

Support context.WithDeadLine

When running a container, there is no facility to stop and error out from the health check. Currently the only work-around is to elevate a context with deadline to a panic within the scope of the health check. It would be better if dockertest would support a cancelable context and error out.

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.