Coder Social home page Coder Social logo

Comments (5)

AndreLouisCaron avatar AndreLouisCaron commented on July 30, 2024

why still check if docker is available and then ignore what the user configured?

The intent here is that localhost is supported as a fallback mechanism. It's not "disable Docker", it's "try Docker and resort to localhost when necessary".

My impression from the wording around docker_allow_fallback would be that if it returns True it doesn't try to run anything with Compose at all and just returns localhost:port.

I agree that the wording in the README does not accurately describe what this feature does. I will try to updated it to better reflect how the feature works.

If the current behaviour is a problem for you, I'd consider a contribution that adds a "localhost only" mode.

Ideally, this should be a user preference (e.g. enabled using an environment variable), not a project preference.

from pytest-docker.

daenney avatar daenney commented on July 30, 2024

Awesome, thanks for the clarification. I'll see if I can come up with a PR to make this configurable.

from pytest-docker.

butla avatar butla commented on July 30, 2024

@AndreLouisCaron What's the usecase for the fallback? I'm not getting why use pytest-docker if you don't have Docker.

from pytest-docker.

AndreLouisCaron avatar AndreLouisCaron commented on July 30, 2024

­@butla It was meant as a crutch while converting a bunch of projects from a prehistoric database installer setup to a Docker-based test runner. We needed to support the same test suite with both Docker and non-Docker setups while we onboarded a bunch of people to the new Docker workflow.

I don't expect anyone to rely on this anymore, but I never saw removing this as time well spent either :-)

from pytest-docker.

butla avatar butla commented on July 30, 2024

@AndreLouisCaron Ok, thanks for clarification :-)

from pytest-docker.

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.