Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
/ docker-molecule Public archive

Docker container for running molecule, with in-container support for the Docker driver. Mostly for use with ConcourseCI.

Notifications You must be signed in to change notification settings

gaahrdner/docker-molecule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

docker-molecule

Docker container for running molecule, with in-container support for the Docker driver.

I built this primarily to use with ConcourseCI, for testing roles in pipelines, using Docker in Docker.

It relies on the docker-lib.sh file for wrapping docker commands, provided by Concourse, and entrykit.

You might need to start up rsyslogd in your concourse task definition, depending on your configured molecule log_driver.

Here's an example task definition that works for me:

platform: linux

image_resource:
  type: docker-image
  source:
    repository: gaahrdner/molecule
    tag: "latest"

inputs:
  - name: ansible

run:
  path: /bin/sh
  args:
  - -exc
  - |
    rsyslogd
    source /usr/local/bin/docker-lib.sh
    start_docker
    cd ansible || exit
    ansible-galaxy install -r requirements.yml
    cd roles/my_role || exit
    molecule test

About

Docker container for running molecule, with in-container support for the Docker driver. Mostly for use with ConcourseCI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages