summaryrefslogtreecommitdiff
path: root/molecule/default/Dockerfile.j2
diff options
context:
space:
mode:
Diffstat (limited to 'molecule/default/Dockerfile.j2')
-rw-r--r--molecule/default/Dockerfile.j27
1 files changed, 5 insertions, 2 deletions
diff --git a/molecule/default/Dockerfile.j2 b/molecule/default/Dockerfile.j2
index 0529528..f45ea7d 100644
--- a/molecule/default/Dockerfile.j2
+++ b/molecule/default/Dockerfile.j2
@@ -4,8 +4,11 @@ FROM {{ item.registry.url }}/{{ item.image }}
FROM {{ item.image }}
{% endif %}
-RUN yum install -y sudo && \
- yum clean all
+{% if item.image in ["centos:7"] %}
+RUN yum install -y sudo libselinux-python && yum clean all
+{% else %}
+RUN yum install -y sudo python3-libselinux && yum clean all
+{% endif %}
RUN adduser centos && \
echo 'centos ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/90-centos && \