Skip to content

Commit

Permalink
[skip travis] updates to last commit
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Mordant <[email protected]>
  • Loading branch information
Tcharl committed Mar 3, 2024
1 parent 00deeaa commit 00e1447
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions molecule/common/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}

{% if item.env is defined %}
{% for var, value in item.env.items() %}
{% if value %}
ENV {{ var }} {{ value }}
{% endif %}
{% endfor %}
{% endif %}
{% if item.volumes is defined %}
VOLUME ["/sys/fs/cgroup"]
{% endif %}
RUN dnf -y install systemd && dnf clean all
# && \ (cd /lib/systemd/system/sysinit.target.wants/ ; for i in * ; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i ; done) ; \
# rm -f /lib/systemd/system/multi-user.target.wants/* ;\
# rm -f /etc/systemd/system/*.wants/* ;\
# rm -f /lib/systemd/system/local-fs.target.wants/* ; \
# rm -f /lib/systemd/system/sockets.target.wants/*udev* ; \
# rm -f /lib/systemd/system/sockets.target.wants/*initctl* ; \
# rm -f /lib/systemd/system/basic.target.wants/* ;\
# rm -f /lib/systemd/system/anaconda.target.wants/*
{% if item.command is defined %}
CMD ["{{ item.command }}"]
{% endif %}

0 comments on commit 00e1447

Please sign in to comment.