Collection of Dockerfiles for Container to test Ansible Roles with Molecule. Mirror of: https://dominik.wombacher.cc/~git/ansible-molecule-container/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Dominik Wombacher 6c8349463b docs(README): minor improvements, missing entries added to ToC, additional information about /dev/shm and sapconf package added 2 months ago
.reuse feat: reuse.software added to track license compliance 2 months ago
LICENSES feat: reuse.software added to track license compliance 2 months ago
rhel7-python2-systemd fix: information about ubi7 relation added 2 months ago
sles12sp5-python2 docs(sles12sp5-python2): information about suse subscription requirements added, typos corrected 2 months ago
sles12sp5-python2-systemd docs(sles12sp5-python2-systemd): information about suse subscription requirements added, typos corrected 2 months ago
README.md docs(README): minor improvements, missing entries added to ToC, additional information about /dev/shm and sapconf package added 2 months ago

README.md

Ansible Molecule Container

Collection of Dockerfiles to build Container Images that include necessary packages to test Ansible Roles with Molecule.

REUSE status

Table of Content

Container

SLES 12 SP5 - Python2

Derived Container based on sles12sp5:latest that includes Python2 to allow testing Ansible Roles with Molecule.

SLES 12 SP5 - Python2, systemd

Derived Container based on sles12sp5:latest that includes Python2 and systemd to allow testing Ansible Roles with Molecule.

RHEL 7 (UBI) - Python2, systemd

Derived Container based on ubi7/ubi-init:latest:latest that includes Python2 and systemd to allow testing Ansible Roles with Molecule.

How to run systemd Container with Docker

docker run \
--tmpfs /run --tmpfs /tmp \
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
--volume /dev/shm --tmpfs /dev/shm:rw,nosuid,nodev,exec,size=64M \
--detach --rm \
--name <containername> \
<image>

The /dev/shm line is nececessary to meet requirements of the included sapconf package in the sles12sp5-python2-systemd container. Can be omitted when using other container or if sapconf isn't required / can be ignored.

Further details why the other tmpfs and volume statements are necessary:

How to use systemd Container with Molecule

platforms:
  - name: <containername>
    image: <image>
    pre_build_image: true
    tmpfs:
      - /run
      - /tmp
      - /dev/shm:rw,nosuid,nodev,exec,size=64M
    volumes:
      - "/sys/fs/cgroup:/sys/fs/cgroup:ro"
      - "/dev/shm"

See How to run systemd Container on Docker section above for information about /dev/shm.

License

Unless otherwise stated: GNU General Public License v3.0 or later

All files contain license information either as header comment or corresponding .license file.

REUSE from the FSFE implemented to verify license and copyright compliance.