From 0ab962a0c07085e0b9179599b149c3c46e5d1c7a Mon Sep 17 00:00:00 2001
From: pwalczysko
Date: Wed, 13 Nov 2024 17:18:04 +0000
Subject: [PATCH] test
---
molecule/ome-demoserver/molecule.yml | 1 +
molecule/resources/Dockerfile.j2 | 22 ----------------------
2 files changed, 1 insertion(+), 22 deletions(-)
delete mode 100644 molecule/resources/Dockerfile.j2
diff --git a/molecule/ome-demoserver/molecule.yml b/molecule/ome-demoserver/molecule.yml
index c75da184..60086e99 100644
--- a/molecule/ome-demoserver/molecule.yml
+++ b/molecule/ome-demoserver/molecule.yml
@@ -23,6 +23,7 @@ provisioner:
scenario:
name: ome-demoserver
test_sequence:
+ - dependency
- destroy
# dependency must come first so that ansible-lint will see a custom module
# This might be fixed by https://github.com/ansible/molecule/pull/1739
diff --git a/molecule/resources/Dockerfile.j2 b/molecule/resources/Dockerfile.j2
deleted file mode 100644
index 00b7fd61..00000000
--- a/molecule/resources/Dockerfile.j2
+++ /dev/null
@@ -1,22 +0,0 @@
-# Molecule managed
-
-{% if item.registry is defined %}
-FROM {{ item.registry.url }}/{{ item.image }}
-{% else %}
-FROM {{ item.image }}
-{% endif %}
-
-{% if item.env is defined %}
-{% for var, value in item.env.items() %}
-{% if value %}
-ENV {{ var }} {{ value }}
-{% endif %}
-{% endfor %}
-{% endif %}
-
-RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates iproute2 && apt-get clean; \
- elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python*-dnf bash iproute && dnf clean all; \
- elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash iproute ca-certificates && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
- elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml iproute2 && zypper clean -a; \
- elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
- elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates iproute2 && xbps-remove -O; fi