We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e88c82 commit 02ff788Copy full SHA for 02ff788
molecule/default/Dockerfile.j2
@@ -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
14
+{% endfor %}
15
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