Code Monkey home page Code Monkey logo

Comments (7)

dhutty avatar dhutty commented on June 9, 2024

Not currently. But that doesn't mean that we wouldn't make a plan if it's desired and demonstrably viable/valuable. The best way forward would be if you would expand a little on what you have in mind.

from molecule.

skornehl avatar skornehl commented on June 9, 2024

we need the possibility to describe this in molecule.yml - or am I just missing something here?

from molecule.

tjanez avatar tjanez commented on June 9, 2024

@dhutty, our use case would be using Molecule in an environment where one can't easily spin up virtual machines with Vagrant, but can easily create Docker containers.

An example of such an environment are most CI services which usually only provide a single or a couple of very customized operating system options (e.g. Travis CI's build environment) but offer Docker support for spinning up containers from any operating system image.

It would be great if one could use Molecule with e.g. Travis CI to test an Ansible role on various operating systems via their official Docker images.

The way I see this could be implemented is to create a new provisioner as an alternative to the VagrantProvisioner but I don't know which Docker tool could provide similar capabilities to Vagrant?

from molecule.

retr0h avatar retr0h commented on June 9, 2024

@tjanez Having molecule work on travisci is paramount. We are knees deep in some platform work, but happy to look into this in the next couple months.

from molecule.

azenk avatar azenk commented on June 9, 2024

I decided to take a stab at this. It's a work in progress at https://github.com/azenk/molecule/tree/docker_provisioner

It looks to me like a change in the provisioner injection code is required, as well as a config file change. Without it, I don't believe that the provisioner can be changed from vagrant without modifying the default.yml file. I'd propose adding a provisioner option to the molecule section.

from molecule.

kireledan avatar kireledan commented on June 9, 2024

I decided to give this a try because I urgently desired this feature. So far all of the commands except verify are supported and right now I have it only building off of one static image name. But at the moment, a molecule converge does run the playbooks against the specified docker containers. Molecule test also works (except the verify states that integration tests are skipped).

https://github.com/kireledan/molecule/tree/docker_provision

My next step is to do some cleanup and add some more abstraction.

from molecule.

retr0h avatar retr0h commented on June 9, 2024

Completed - @kireledan rocks 🎸

from molecule.

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.