Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 1.13 KB

README.md

File metadata and controls

11 lines (7 loc) · 1.13 KB

Docker Automated build Docker Build Status Pulls on Docker Hub Open Issues

Running Molecule in Docker

A minimal docker container to run molecule tests in CI e.g. Jenkins based on a small python 3.6 alpine image.

Usage

docker run --rm -v $PWD/:/home/myuser/ansible-role-name -v /var/run/docker.sock:/var/run/docker.sock hendrik44/docker-ansible-molecule

To be able to git clone private repos mount the ssh-key like this: docker run --rm -v $PWD/:/home/myuser/ansible-role-name -v /var/run/docker.sock:/var/run/docker.sock -v ~/.ssh/id_rsa:/root/.ssh/id_rsa:ro hendrik44/docker-ansible-molecule