Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
Allow to additionally configure arbitrary command-line options (#107)
Browse files Browse the repository at this point in the history
Co-authored-by: Sorin Sbarnea <[email protected]>
  • Loading branch information
lucendio and ssbarnea authored Apr 8, 2022
1 parent b624962 commit 272516d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/molecule_podman/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ class Podman(Driver):
storage_opt: overlay.mount_program=/usr/bin/fuse-overlayfs
storage_driver: overlay
systemd: true|false|always
extra_opts:
- --memory=128m
If specifying the `CMD`_ directive in your ``Dockerfile.j2`` or consuming a
built image which declares a ``CMD`` directive, then you must set
Expand Down
1 change: 1 addition & 0 deletions src/molecule_podman/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
{% if item.etc_hosts is defined %}{% for i,k in item.etc_hosts.items() %}{% if i != item.name %}--add-host {{ i }}:{{ k }} {% endif %}{% endfor %}{% endif %}
{% if item.hostname is defined %}--hostname={{ item.hostname }}{% elif item.name is defined %}--hostname={{ item.name }}{% endif %}
{% if item.systemd is defined %}--systemd={{ item.systemd|string|lower }}{% endif %}
{{ item.extra_opts | default([]) | join(' ') }}
{{ item.pre_build_image | default(false) | ternary('', 'molecule_local/') }}{{ item.image }}
{{ (command_directives_dict | default({}))[item.name] | default('') }}
register: server
Expand Down

0 comments on commit 272516d

Please sign in to comment.