summaryrefslogtreecommitdiffstats
path: root/ansible/roles/package-repository-check/molecule/ubuntu/Dockerfile.j2
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/package-repository-check/molecule/ubuntu/Dockerfile.j2')
-rwxr-xr-xansible/roles/package-repository-check/molecule/ubuntu/Dockerfile.j214
1 files changed, 14 insertions, 0 deletions
diff --git a/ansible/roles/package-repository-check/molecule/ubuntu/Dockerfile.j2 b/ansible/roles/package-repository-check/molecule/ubuntu/Dockerfile.j2
new file mode 100755
index 00000000..5e856c0a
--- /dev/null
+++ b/ansible/roles/package-repository-check/molecule/ubuntu/Dockerfile.j2
@@ -0,0 +1,14 @@
+# Molecule managed
+
+{% if item.registry is defined %}
+FROM {{ item.registry.url }}/{{ item.image }}
+{% else %}
+FROM {{ item.image }}
+{% endif %}
+
+RUN apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean
+
+# /etc/resolv.conf cannot be edited in docker container
+# due to cannot be installed resolvconf
+# https://github.com/moby/moby/issues/1297
+RUN echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections