-
Notifications
You must be signed in to change notification settings - Fork 56
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
Zerotier local url CLI, env setting #207
Conversation
…nvironment. Signed-off-by: Erik Hollensbe <git@hollensbe.org>
oops. Merging #208 broke this. I'm not sure why but git is doing a bad job at rebasing this for me. Will figure it out. |
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
…ching on an Option<> Simply a better patch! Signed-off-by: Erik Hollensbe <git@hollensbe.org>
I have a fixed up version here https://github.com/laduke/zeronsd/tree/tl-zerotier-url |
Ok, I'll get on it, will ack when I'm done. Probably later today.
…------- Original Message -------
On Wednesday, March 22nd, 2023 at 2:24 PM, Travis LaDuke ***@***.***> wrote:
I have a fixed up version here https://github.com/laduke/zeronsd/tree/tl-zerotier-url
integration tests pass and a quick check of cargo run seemed ok.
It wouldn't let me force push over this pr's branch.
—
Reply to this email directly, [view it on GitHub](#207 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAAET24G4RJJJP3OVQZNFZTW5NUY7ANCNFSM6AAAAAAVRAJHYU).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
I had to resolve conflicts so please let me know if I screwed something up, but it's there now.
HTH!
…------- Original Message -------
On Wednesday, March 22nd, 2023 at 3:03 PM, Erik Hollensbe (OSS) ***@***.***> wrote:
Ok, I'll get on it, will ack when I'm done. Probably later today.
------- Original Message -------
On Wednesday, March 22nd, 2023 at 2:24 PM, Travis LaDuke ***@***.***> wrote:
> I have a fixed up version here https://github.com/laduke/zeronsd/tree/tl-zerotier-url
> integration tests pass and a quick check of cargo run seemed ok.
> It wouldn't let me force push over this pr's branch.
>
> —
> Reply to this email directly, [view it on GitHub](#207 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAAET24G4RJJJP3OVQZNFZTW5NUY7ANCNFSM6AAAAAAVRAJHYU).
> You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Awesome. Thanks! I tested it all locally. |
EDIT: Looks like the container I pulled from docker hub is super old and doesn't have this. EDIT 2: @erikh Is it trivial for you to push a new image? I don't have my env set up to build this and build my own image, and would prefer to avoid it as I just want to give zeronsd a try more than anything. I'm trying to use this feature but it doesn't appear to be a valid parameter for me.
when I check the version, I get
This version appears to be deployed after this change made it in, so I think it should be there. is there something I'm doing wrong? |
I don't think a release has been cut with it in there yet.
…On Wednesday, January 17th, 2024 at 1:21 PM, Jesús Luzón ***@***.***> wrote:
I'm trying to use this feature but it doesn't appear to be a valid parameter for me.
zeronsd-start
Start the nameserver
USAGE:
zeronsd start [OPTIONS] <NETWORK_ID>
ARGS:
<NETWORK_ID> Network ID to query
OPTIONS:
-c, --config <PATH> Configuration file containing these arguments (overrides most
CLI options)
--chain-cert <PATH>
--config-type <CONFIG_TYPE> Configuration file format [yaml, json, toml] [default: yaml]
-d, --domain <DOMAIN> TLD to use for hostnames
-f, --file <PATH> An additional list of hosts in /etc/hosts format
-h, --help Print help information
-l, --log-level <LEVEL> Log Level to print [off, trace, debug, error, warn, info]
-s, --secret <PATH> Path to authtoken.secret (usually detected)
-t, --token <PATH> Path to a file containing the ZeroTier Central token
--tls-cert <PATH>
--tls-key <PATH>
-v Verbose logging (repeat -v for more verbosity)
-w, --wildcard Wildcard all names in Central to point at the respective
member's IP address(es)
```
when I check the version, I get
***@***.***:~# zeronsd -V
zeronsd 0.5.2```
This version appears to be deployed after this change made it in, so I think it should be there. is there something I'm doing wrong?
—
Reply to this email directly, [view it on GitHub](#207 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAAET2ZFLLVF7B24HVJN72DYPA6GPAVCNFSM6AAAAAAVRAJHYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJWG44DCNZWHE).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Oh that makes sense. No wonder when I checked version I thought I was at latest. I'll see if I can a get a docker image built with latest so I can take it for a spin. I should also have a docker compose file that should be able to run zeronsd with its own copy of zerotier-cli, but sadly I'm sure I can't get it to work until I can pass the local url as an env var. |
I have tried compiling this but bumped into some errors... error[E0308]: error[E0308]: |
Closes #196
Be aware this is rebased against #206. Please merge that first to avoid trouble.
This implements a CLI option and environment variable for specifying the local zerotier url. Please note my aptitude for programming is significantly ... rusty (ha! I PUNNED) and that it's probably not the optimal patch. Carrying the launcher struct is probably a better long-term choice.
There are a lot of clippy warnings in the code now. I might take some time and beat some of these back, but there's also a good chance I won't expend the energy, so be aware they are there.
I hope this helps you folks on your journey.