- build docs on install if needed
- clean should remove the .7 page
- add uninstall target so users can remove the pages from the system
Fixes #1179
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
There are two major changes here.
Firstly, this adds proper support for port forwarding from
localhost via a new policy accepting traffic from HOST. This is
the last bit we were missing from the original port-forwarding
implementation.
This requires two new zones: one in which the actual port forward
occurs, and one to allow traffic to 127.0.0.1 to be masqeuraded
so we can talk to the container from localhost.
Secondly, this fixes a bug where we generated incorrect rules
when port-forwarding from a single IP. Instead of doing standard
port-forwarding rules, those need rich rules. This was reported
as #881.
There are also some small code cleanups in how we handle setting
up and tearing down port forwarding. It's still rather ugly, but
at least a little better than it was before.
Fixes #881
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This mostly amounts to throwing a sensible error in cases where
the setting is enabled and the user has requested ports be
forwarded.
There are no tests at present because firewalld 2.3.x is
currently restricted to Rawhide, and is required for effective
testing.
A manpage has also been added with details on how to work with
the StrictForwardPorts setting (as well as some other tidbits on
firewalld + Podman integration).
Signed-off-by: Matt Heon <mheon@redhat.com>
I documented how to generate a code coverage report using
coverage-profiling in the Rust compiler and the `grcov` tool created by
Mozilla. It generates an html version of the report that you can open in
the browser and navigate.
Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
The proxy is nearing completion and having them in separate repos has
become problematic geiven that they both "use" each other.
Signed-off-by: Brent Baude <bbaude@redhat.com>
Add target to install mandown, also fixes useless `command -v` exucuting
in the makefile since it did't error out anyway when it was empty.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Regression caused by 011f899919. We only want to build actual man
pages of course and not general docs.
This commit fixes the wildcard target to only use the `.1.md` files
instead of all markdown files.
Also add the step to the validate target to make sure CI tests this
target.
Fixes #524
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
- Run rustfmt in `make validate` and CI validation
- Makefile: allow modification of PREFIX, DATADIR and MANDIR
- .cirrus.yml uses make targets instead of cargo commands
- Use `mandown` for manpage generation instead of `go-md2man`
Fixes: #33
Needs rustfmt and mandown crates installed in CI image.
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>