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

Request: docs about installing using cargo #1154

Open
erlangparasu opened this issue Jan 6, 2025 · 2 comments
Open

Request: docs about installing using cargo #1154

erlangparasu opened this issue Jan 6, 2025 · 2 comments

Comments

@erlangparasu
Copy link

erlangparasu commented Jan 6, 2025

via cargo install netavark

https://crates.io/crates/netavark

@Luap99
Copy link
Member

Luap99 commented Jan 6, 2025

What exactly is the question?

The binary must be placed in a specific directory for podman to discover it (see helper_binaries_dir in containers.conf) and I think by default cargo install would place the binary in a user local $PATH which woul dnot make it work by default.
And we do have a test only binary (netavark-dhcp-proxy-client) that should not be installed on normal systems but the install command would pick it up from Cargo.toml by default.
Also we ship several systemd units as well that cannot be handled by cargo install either.

So overall I would recommend against using cargo install. That said I do agree that we do not have any specific install instructions in this repo.

@erlangparasu
Copy link
Author

What exactly is the question?

The binary must be placed in a specific directory for podman to discover it (see helper_binaries_dir in containers.conf) and I think by default cargo install would place the binary in a user local $PATH which woul dnot make it work by default. And we do have a test only binary (netavark-dhcp-proxy-client) that should not be installed on normal systems but the install command would pick it up from Cargo.toml by default. Also we ship several systemd units as well that cannot be handled by cargo install either.

So overall I would recommend against using cargo install. That said I do agree that we do not have any specific install instructions in this repo.

oh i see. i just think its easier to use cargo to build the netavark binary, its ready to use. Also i have tried using cargo install, and create symlink to specific podman's needs: /usr/local/libexec/podman/netavark. it works well for now

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

2 participants