summaryrefslogtreecommitdiff
path: root/molecule/default/Dockerfile.j2
blob: 052952819bd6c7bd6f3adb4cbff086db4ce7a17c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}

RUN yum install -y sudo && \
    yum clean all

RUN adduser centos && \
    echo 'centos ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/90-centos && \
    chmod 440 /etc/sudoers.d/90-centos