Sign inSign up

gwerlas/molecule

By gwerlas

•Updated 3 days ago

Molecule container image with docker and podman support

Image
Integration & delivery
2

10K+

gwerlas/molecule repository overview

⁠Molecule

Container image with Molecule⁠ and Molecule plugins⁠, built on top of gwerlas/ansible⁠.

GitLab Project : yoanncolin/container-images/molecule⁠.

⁠Tags

Every tag moves to the newest matching build, X.Y.Z included: the image of the current version is rebuilt weekly for security updates. To keep an image fixed, pin its digest (gwerlas/molecule@sha256:…) in docker pull or FROM.

latest runs the ansible-core of gwerlas/ansible:14 (2.21). A flavour on the oldest ansible-core the gwerlas.system⁠ collection supports carries the same tags with a -coreX.Y suffix (26.10.0-core2.19, 26.10-core2.19, …), and coreX.Y in place of latest :

VersionTagsRebuildSource
26.11.026.11.0, 26.11, 26, latestWeeklyDockerfile⁠
26.11.0-core2.1926.11.0-core2.19, 26.11-core2.19, 26-core2.19, core2.19WeeklyDockerfile⁠
26.10.026.10.0, 26.10Dockerfile⁠
26.10.0-core2.1926.10.0-core2.19, 26.10-core2.19Dockerfile⁠
26.9.026.9.0, 26.9Dockerfile⁠
26.8.026.8.0, 26.8Dockerfile⁠
26.6.026.6.0, 26.6Dockerfile⁠
26.4.026.4.0, 26.4Dockerfile⁠
26.3.026.3.0, 26.3Dockerfile⁠
26.2.026.2.0, 26.2Dockerfile⁠
25.12.025.12.0, 25.12, 25Dockerfile⁠
25.11.125.11.1, 25.11Dockerfile⁠
25.11.025.11.0Dockerfile⁠
25.9.025.9.0, 25.9Dockerfile⁠
25.4.025.4.0, 25.4Dockerfile⁠
25.3.125.3.1, 25.3Dockerfile⁠
25.2.025.2.0, 25.2Dockerfile⁠
24.12.024.12.0, 24.12, 24Dockerfile⁠
24.2.124.2.1, 24.2Dockerfile⁠
24.2.024.2.0Dockerfile⁠
6.0.36.0.3, 6.0, 6Dockerfile⁠
6.0.26.0.2Dockerfile⁠
6.0.16.0.1Dockerfile⁠
6.0.06.0.0Dockerfile⁠
5.1.05.1.0, 5.1, 5Dockerfile⁠
5.0.15.0.1, 5.0Dockerfile⁠
5.0.05.0.0Dockerfile⁠
4.0.44.0.4, 4.0, 4Dockerfile⁠

⁠Requirements

You'll need to have a configured and running libvirt for virtual machines based tests scenarios.

You'll need to have a configured container engine (Docker or Podman) for containers based tests scenarios.

⁠Usage

The container runs as the build user (non-root) inherited from the gwerlas/ansible⁠ image. When mounting a local directory, make sure it is readable and writable by that user, or pass your own UID/GID.

docker run -t --rm \
  -v $HOME/.ansible:/home/build/.ansible \
  -v $PWD:$PWD \
  -w $PWD \
  -v /run/docker.sock:/run/docker.sock \
  gwerlas/molecule \
  molecule test

For virtual machines, use Molecule's default driver: its create.yml and destroy.yml playbooks drive libvirt from Ansible (with community.libvirt, shipped in the image), through the host's libvirt socket :

Breaking: Vagrant is no longer shipped. The vagrant command, the vagrant-libvirt plugin and Molecule's vagrant driver are gone, along with the Debian unstable packages they came from. Move VM-based scenarios to the default driver, or pin an older tag meanwhile.

docker run -t --rm \
  -v $HOME/.ansible:/home/build/.ansible \
  -v $PWD:$PWD \
  -w $PWD \
  --cap-add SYS_ADMIN \
  --cap-add NET_ADMIN \
  -v /run/libvirt:/run/libvirt \
  -v /var/lib/libvirt:/var/lib/libvirt \
  gwerlas/molecule \
  molecule test

⁠License

BSD 3-Clause License⁠.

Tag summary

Content type

Image

Digest

sha256:db20da8f2…

Size

345.3 MB

Last updated

3 days ago

docker pull gwerlas/molecule