Skip to content

Commit 02ff788

Browse files
committed
fix CI
1 parent 1e88c82 commit 02ff788

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: molecule/default/Dockerfile.j2

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Molecule managed
2+
3+
{% if item.registry is defined %}
4+
FROM {{ item.registry.url }}/{{ item.image }}
5+
{% else %}
6+
FROM {{ item.image }}
7+
{% endif %}
8+
9+
{% if item.env is defined %}
10+
{% for var, value in item.env.items() %}
11+
{% if value %}
12+
ENV {{ var }} {{ value }}
13+
{% endif %}
14+
{% endfor %}
15+
{% endif %}
16+
17+
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python3 sudo bash ca-certificates iproute2 systemd wget && apt-get clean; \
18+
elif [ $(command -v yum) ]; then sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* && yum install -y python3 sudo bash iproute systemd initscripts wget; fi

0 commit comments

Comments
 (0)