Coder Social home page Coder Social logo

decayofmind / ansible-bluegreen-docker Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 8.0 408 KB

Ansible role, showing a concept of blue-green deployments with Docker containers

Home Page: https://galaxy.ansible.com/decayofmind/bluegreen-docker/

License: MIT License

Python 17.06% Jinja 82.94%
ansible ansible-role blue-green-deployments docker

ansible-bluegreen-docker's People

Contributors

decayofmind 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

Watchers

 avatar  avatar  avatar

ansible-bluegreen-docker's Issues

Question/Discussion: Is is it not better to use docker compose for updating the services?

Hi Roman,

I came across the docker_service - module in Ansible, which is basically about docker compose. Would it not simplify/easify the concept aka make the transition more seamless? If you split the machines in the inventory in two groups general groups green and blue?

If we theoretically would speak about and inventory that would be in yaml format:

bg_blue:
        hosts:
           10.0.0.1
           10.0.0.3
        vars:
           blue: true

bg_green:
         hosts:
           10.0.0.2
           10.0.0.4
         vars:
             green: true

And move on from there?

Error running molecule

Docker version 17.09.0-ce
ansible 2.4.1.0
molecule, version 1.25.1

Whenever I run molecule check in the molecule/default directory, I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/molecule", line 10, in <module>
    sys.exit(main())
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/molecule/cli.py", line 41, in main
    cli(obj={})
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/molecule/command/check.py", line 60, in check
    c = Check(ctx.obj.get('args'), {})
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/molecule/command/base.py", line 60, in __init__
    self.main()
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/molecule/command/base.py", line 83, in main
    self.molecule.main()
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/molecule/core.py", line 57, in main
    self.driver = self._get_driver()
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/molecule/core.py", line 312, in _get_driver
    return dockerdriver.DockerDriver(self)
  File "/usr/local/Cellar/molecule/1.25.1/libexec/lib/python2.7/site-packages/molecule/driver/dockerdriver.py", line 39, in __init__
    self._docker = docker.APIClient(
AttributeError: 'module' object has no attribute 'APIClient'

Any idea?

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.