Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 917 Bytes

docker.md

File metadata and controls

41 lines (29 loc) · 917 Bytes

Using docker containers

Below you can see a scenario that is using docker containers as test hosts. When you run molecule test --scenario-name docker the create, converge and destroy steps will be run one after another.

This example is using Ansible playbooks and it does not need any molecule plugins to run. You can fully control which test requirements you need to be installed.

Config playbook

{!../molecule/docker/molecule.yml!}
{!../molecule/docker/requirements.yml!}

Create playbook

{!../molecule/docker/create.yml!}
{!../molecule/docker/tasks/create-fail.yml!}

Converge playbook

{!../molecule/docker/converge.yml!}

Destroy playbook

{!../molecule/docker/destroy.yml!}