Skip to content

Various miscellaneous fixes to the manuals - #814

Merged
debarshiray merged 19 commits into
containers:mainfrom
debarshiray:wip/rishi/manuals-fixups
Jun 26, 2021
Merged

debarshiray merged 19 commits into
containers:mainfrom
debarshiray:wip/rishi/manuals-fixups

Conversation

@debarshiray

Copy link
Copy Markdown
Member

No description provided.

debarshiray added a commit to debarshiray/toolbox that referenced this pull request Jun 25, 2021
@debarshiray
debarshiray force-pushed the wip/rishi/manuals-fixups branch from d98ec3c to e42a83a Compare June 25, 2021 23:56
@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

It's good to document the --log-level and --log-podman flags because
they can give us some flexibility with the logging in future, but it's
still desirable to keep --verbose (and the -vv trick) in the manual.

Toolbox is still a small enough code base that not too many log levels
are actually needed, yet. The complexity of remembering which log
level reveals which detail soon starts to outweigh the simplicity of
dumping as much as possible, since there aren't that many log messages
to begin with. It's a lot easier to type and remember things like
--verbose, -v and -vv, than their newer counterparts, and they are a
reasonably widely used convention (eg., flatpak, nmap, ssh, etc.).

If some day Toolbox grows to have a significantly larger number of log
messages, then it's possible that --verbose would be of less use, but
that's not the case today.

containers#814
The manuals for the individual commands were already listed above.

The entry point of toolbox containers is prominently documented in
toolbox-create(1) and toolbox-init-container(1). It's not clear why
someone who has just come across toolbox(1) would want to know about
the entry point. It's, after all, an implementation detail. They
probably don't even know what's an entry point to begin with. The
top-level manual should give the reader an overall view of the tool
from a user's perspective, and let the other manuals draw them into the
finer details of things.

containers#814
Some aspects of the Fedora image are described in toolbox-create(1),
but the exact URL of the image is an implementation detail. As Toolbox
grows, it will become unwieldy to describe these details in the
top-level manual.

containers#814
@debarshiray
debarshiray force-pushed the wip/rishi/manuals-fixups branch from e42a83a to 4391b58 Compare June 26, 2021 01:45
This is a continuation of commit ea452d7, which dropped all
references to buildah.

containers#814
@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

The rest of the DESCRIPTION section refers to toolbox containers in the
singular, not plural.

containers#814
The DESCRIPTION already explains the details of the set-up on Fedora,
so there's no need to be so specific here. Plus, conceptually, it's not
meant to be Fedora-specific. Fedora is just an example and happens to
be the most well-supported one at the moment, but that will change.

containers#814
@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

@martymichal martymichal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review. I highlighted a few points:

Comment thread doc/toolbox-run.1.md Resolved
Comment thread doc/toolbox-create.1.md Resolved
It was a deliberate decision to have entry point documented in both
toolbox-create(1) and toolbox-init-container(1). For technical
documentation it's sometimes good to repeat the same thing if it's
sufficiently important. Either to refresh the user's memory or to draw
their attention to it. Having to traverse too many references can get
disorienting. eg., parts of README.md are already repeated in
toolbox(1).

In this case, the entry point is very directly related to the create
command because the command sets it up, and unlike HTML documents,
it's awkward to follow links from manuals.

This reverts parts of commit ea452d7.

containers#814
This builds upon commit ea452d7.

The configuration of a toolbox container is a higher level topic than
the entry point, and the entry point is mentioned as one part of it.
Therefore, putting the section on toolbox set-up earlier in the text
makes it nicely flow from the DESCRIPTION section into the Entry Point
sub-section.

Emphasize the user-visible features of a toolbox container, and not
the underlying implementation details, and avoid using too much jargon
about container technology.

containers#814
Avoid phrases like "shortcoming of container configuration", because
it makes one wonder why a known shortcoming is even being used or not
being fixed. Immutability also has its advantages for certain
use-cases, and it's beyond the scope of this manual to have a full
blown discussion about the pros and cons of OCI containers. Interested
readers can research that on their own.

containers#814
SELinux is always meant to be disabled. The exact location of the code
is a historical accident and isn't meant to imply that SELinux might
be optionally enabled.

containers#814
@softwarefactory-delete-me

Copy link
Copy Markdown

Build failed.

@debarshiray
debarshiray merged commit 2b317b9 into containers:main Jun 26, 2021
@debarshiray
debarshiray deleted the wip/rishi/manuals-fixups branch June 26, 2021 17:06
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

Successfully merging this pull request may close these issues.

2 participants