Replies: 3 comments
-
You can use whatever image you want with molecule-docker, a prebuilt one or not. Just edit the molecule.yml file and write which image you want to use on it, it can even be from other registries. |
Beta Was this translation helpful? Give feedback.
-
Yes, that's understood, but from an automated test (tox) perspective, is
there an way to set it prior to the tests starting?
…On Sat, Nov 7, 2020, 9:39 AM Sorin Sbarnea ***@***.***> wrote:
You can use whatever image you want with molecule-docker, a prebuilt one
or not. Just edit the molecule.yml file and write which image you want to
use on it, it can even be from other registries.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2950 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEUN6OYDMRY3IH55F26YLTSOVS2JANCNFSM4TK5EJEA>
.
|
Beta Was this translation helpful? Give feedback.
-
You can use environment variables with implicit values inside molecule.yml, the same way you would do in tox.ini files. This allows you to override the platforms being used. I my early days of molecule I used that to control platform being used but I stopped doing it as it was inconvenient and made it harder for users to spot where does it comes from. The same can be said about overriding the driver being used. Obviously that the swap is limited between drivers with compatible settings, like docker and podman. For cloud ones is tricky as image names and flavors are almost always incompatible. |
Beta Was this translation helpful? Give feedback.
-
Hey @ssbarnea,
I'm struggling a bit with the tests for
molecule-inspec
. In order to exec various tests I need to pull inmolecule-docker
which is fine. The problem is the default image oninit
isdocker.io/pycontribs/centos:8
and it does not seem like there is a way to override that setting. The current version of Inspec (2.2.3) thatmolecule-inspec
is configured for does not have packages for CentOS 8. My preference would be to get tests passing before changing the actual functionality of the plugin.Feels a bit chicken and egg... thoughts?
Beta Was this translation helpful? Give feedback.
All reactions