Sign inSign up

jomrr/molecule-alpine

By jomrr

Updated 18 days ago

Alpine container images for testing Ansible roles with Molecule.

Image
0

1.6K

jomrr/molecule-alpine repository overview

Ansible Molecule Images for Alpine

This repository contains Ansible Molecule images for Alpine.

Images

The images in this repository are based on alpine and include openrc and Python and the according package manager and libraries, making them suitable for testing Ansible roles with Molecule.

Alpine Versions

The repository provides images for the following Alpine variants:

VersionImageTags
Alpine 3.21jomrr/molecule-alpine3.21
Alpine 3.22jomrr/molecule-alpine3.22
Alpine 3.23jomrr/molecule-alpine3.23, 3, latest
Alpine Edgejomrr/molecule-alpineedge

Usage

To use these images in Molecule, reference them in your molecule.yml.

Molecule docker driver

To use the Alpine latest image with the docker driver:

platforms:
  - name: instance
    image: "jomrr/molecule-alpine:latest"
    privileged: true
    pre_build_image: true
    override_command: false
    tmpfs:
      - /run
      - /tmp
    tty: true
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:rw
Molecule podman driver

To use the Alpine latest image with the podman driver:

platforms:
  - name: instance
    image: "docker.io/jomrr/molecule-alpine:latest"
    pre_build_image: true
    override_command: false
    systemd: "true"

This will start a container with Alpine latest and openrc as pid 1, which you can then use for testing your Ansible roles.

License

These images are released under the MIT License.

Author

Created and maintained by Jonas Mauer.

Source

Source repository: github.com/jomrr/ansible-molecule-images

Tag summary

Content type

Image

Digest

sha256:3f0ee4322

Size

26.7 MB

Last updated

18 days ago

docker pull jomrr/molecule-alpine