Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFE] check container help file inside image in roff format #100

Closed
phracek opened this issue Dec 11, 2017 · 6 comments
Closed

[RFE] check container help file inside image in roff format #100

phracek opened this issue Dec 11, 2017 · 6 comments
Assignees

Comments

@phracek
Copy link
Member

phracek commented Dec 11, 2017

Nowadays, MTF uses help.md (Markdown) format for testing some sanity checks.
https://github.com/fedora-modularity/meta-test-family/blob/devel/moduleframework/tools/helpmd_lint.py#L30
https://github.com/fedora-modularity/meta-test-family/blob/devel/moduleframework/helpfile_linter.py

It would be nice to add also possibility for roff format.

MTF will not check roff format in container/image. This is case for conu. Therefore reassigning.
MTF issue is here: fedora-modularity/meta-test-family#138

@TomasTomecek
Copy link
Member

I'm +1 on having code in conu which checks whether a help file is present in a container (image).

I'm -1 on the code which parses the help file, be it roff or markdown. Maintaining such code is completely infeasible from my PoV. If you have some good arguments here, I would like to hear them.

@phracek
Copy link
Member Author

phracek commented Feb 15, 2018

@TomasTomecek Yes, checking only presence of help file is fine. And I guess only roff file has to be used in container(image). I would check only sections like:

.TH "MEMCACHED"
.SH NAME
.SH DESCRIPTION
.SH USAGE
.SH ENVIRONMENT VARIABLES
.SH SECURITY IMPLICATIONS

Some of them are invalid if e.g. environment variables does not exist in Dockerfile or even they are not specified.

@dhodovsk
Copy link
Member

AC: implement basic method for checking existence of help file and for getting help file. Those methods then will be used in external linter or mtf.

@dhodovsk
Copy link
Member

dhodovsk commented May 7, 2018

Since #197 help file can be check and obtained using image.mount()

Example:

with image.mount() as fs:
    fs.file_is_present('/help.1')

Can we close the issue or are shortcut methods image.has_help_file() and image.get_help_file required?

@TomasTomecek
Copy link
Member

Agreed that this may no longer be needed.

@dhodovsk
Copy link
Member

dhodovsk commented Sep 4, 2018

This will be done in colin user-cont/colin#83

@dhodovsk dhodovsk closed this as completed Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants