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

When running in Docker, zonemaster-cli’s --hints option is hard to use #290

Closed
marc-vanderwal opened this issue Dec 6, 2022 · 3 comments · Fixed by #292
Closed

When running in Docker, zonemaster-cli’s --hints option is hard to use #290

marc-vanderwal opened this issue Dec 6, 2022 · 3 comments · Fixed by #292
Labels
A-Documentation Area: Documentation only.
Milestone

Comments

@marc-vanderwal
Copy link
Contributor

When running zonemaster-cli in Docker, one cannot easily use the --hints option: that’s because the hints file usually lives outside the container’s file system.

While it is possible to get a Dockerized zonemaster-cli to run with custom hints, the command line to achieve this isn’t easy to figure out if one is unfamiliar with both Docker and Linux in general.

In a nutshell, the answer is:

$ docker run --mount type=bind,source=/path/to/hints,target=/hints --rm zonemaster/cli:local --hints /hints zone.to.test

I think this use case is worth documenting somewhere.

@marc-vanderwal marc-vanderwal added the A-Documentation Area: Documentation only. label Dec 6, 2022
@matsduf matsduf added this to the v2023.1 milestone Dec 6, 2022
@matsduf matsduf transferred this issue from zonemaster/zonemaster Dec 6, 2022
@matsduf
Copy link
Contributor

matsduf commented Dec 6, 2022

The use case is probably limited, but it could be worth to be documented under "Advance use" in https://github.com/zonemaster/zonemaster-cli/blob/develop/USING.md

@hannaeko
Copy link
Member

hannaeko commented Dec 7, 2022

--mount type=bind,source=/path/to/hints,target=/hints

This could be less verbose in the more common form -v /path/to/hints:/hints

@ghost
Copy link

ghost commented Jun 7, 2023

Closed with #292

@ghost ghost closed this as completed Jun 7, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Documentation Area: Documentation only.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants