question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation on Platforms is either incomplete or missing references

See original GitHub issue

Issue Type

  • Feature request

Molecule and Ansible details

N/A - This is about the latest documentation at https://molecule.readthedocs.io/en/latest/configuration.html#platforms

Desired Behavior

Perhaps I am missing something here, but I cannot seem to find any proper documentation about the supported properties for the class molecule.platforms.Platforms. I understand these may differ per platform type. Eg. docker may have other properties than Podman? But I would like to be able to somehow find what may be specified.

At time of writing this issue, the most verbose example in your documentation is the following

platforms:
  - name: instance-1
    groups:
      - group1
      - group2
    children:
      - child_group1

However, through trial and error I have found many more working properties.

platforms:
  - name: some-platform
    image: # docker image
    command: # docker run CMD instruction
    volumes:
    - # volume mounts
    privileged: true/false
    pre_build_image: true/false

Where would I start to look for a specification of all supported properties? Could the documentation be updated to refer to that?

I run into this problem when trying to find out how to pass “–env” variables to the container.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
gmolkvkcommented, Oct 5, 2020

Seems like docker driver was removed from the core project #2811 and the documentation has moved with it.

Looks like theres a full list of properties here https://github.com/ansible-community/molecule-docker/blob/master/molecule_docker/driver.py#L56

I don’t know your doc generator so I can’t answer this. Is it possible to pull python classes from another github repo? Would be great to have documentation for the drivers on the molecule documentation. If maintainers are not interested in this feel free to close.

3reactions
timblaktucommented, Jun 21, 2022

@jkirk @gmolkvk, I don’t see any docs anywhere about how the docker driver is used. Just examples and blog posts around the internet where people have grokked how it works from the source code. I just spent several days figuring out how to do the most basic of things with molecule - test a playbook using docker driver. Figuring out what image is used for each scenario, and how dependencies get installed on it (prepare.yml?? Dockerfile.j2?? pre_build_image?? the answer is “yes” 😦) is not documented. scouring the web for answers finds numerous other molecule newbies that have been similarly frustrated, but I don’t see any evidence of why this has never been changed/adopted? I will start with a simple fork/PR to improve the immediate issues I see.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Documentation on Platforms is either incomplete or ...
Documentation on Platforms is either incomplete or missing references. ... Documentation on Platforms is either incomplete or missing references.
Read more >
CWE-1059: Insufficient Technical Documentation (4.9) - MITRE
When technical documentation is limited or lacking, products are more ... the lack of a formal, final manufacturer reference can make it difficult...
Read more >
Add references in the Reference Manager - Visual Studio ...
In Solution Explorer, right-click the References or Dependencies node, and then choose either Add Project Reference, Add Shared Project ...
Read more >
Build settings reference | Apple Developer Documentation
Targets will build for the platform of the active run destination, ... Warns about issues in documentation comments ( doxygen -style) such as...
Read more >
PK93115: CMPL MISSING COPY/BASIS CROSS REFERENCE ...
APAR status. Closed as documentation error. Error description. This is a problem involving the "COPY/BASIS cross reference of text-names, library names and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found