Giter VIP home page Giter VIP logo

Comments (2)

nickjj avatar nickjj commented on July 24, 2024

I slept on it and I think I arrived at a reasonable solution based on the first option proposed above but with a few differences.

  • We can leave things as they are now and pip install both docker and docker-compose
  • Introduce a new docker__compose_v2_version: "" role default to control installing Docker Compose v2 (with pin support)

At this point the role will install both v1 and v2 which is fine because they can both co-exist. However if you wanted to prevent v1 from being installed this role already makes that easy. You can set docker__pip_docker_compose_state: "absent" and you're good to go.

These sets of changes are all backwards compatible, you'll always get v2 (because v2 is the future and stable at this point) and can opt-out of v1 if you want. In the future I may change the role to default to docker__pip_docker_compose_state: "absent" once more folks are used to using v2 but this default switch won't be in the next release.

I've already done these changes locally and tested it fully, it works. I'll commit and push them once I do a bit more clean up on this role. There's a few unrelated internal refactors that I'd like to do.

from ansible-docker.

nickjj avatar nickjj commented on July 24, 2024

This has been implemented in ecae9c9 and it's available in v2.2.0 of this role.

from ansible-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.