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

Dockerfile say, Zerotier 1.6.6, whereas current is 1.8.4 #11

Open
jradxl opened this issue Jan 14, 2022 · 5 comments
Open

Dockerfile say, Zerotier 1.6.6, whereas current is 1.8.4 #11

jradxl opened this issue Jan 14, 2022 · 5 comments

Comments

@jradxl
Copy link

jradxl commented Jan 14, 2022

Hello
Current version of ZeroTier is 1.8.4
Are you continuing to support this?

OK:
Just seen your latest commit, where you identify 1.8.4 breaks controller.
I guess there are other things too as I had to add libpq-dev, but still the controller build fails

Yes:
Just looked at PostgreSQL.cpp, and they are very different. Alas, I'm not conversant with C++

@chmis8000
Copy link

PostgreSQL 相关的能否去掉? v2ex 里面回答说不用,那为啥有这多余的东西编译? @sbilly

@D4rk4
Copy link
Contributor

D4rk4 commented Feb 17, 2022

@chmis8000 Hello Friend, please check my fork https://github.com/D4rk4/docker-zerotier-controller

@jqtmviyu
Copy link

jqtmviyu commented Feb 27, 2022

@chmis8000 Hello Friend, please check my fork https://github.com/D4rk4/docker-zerotier-controller

Dear friend , i use you fork, follow the instructions to complete the installation.
I replaced the planet file on the client and restarted the service, zerotier-cli listpeers showed endpoints as leaf but not planet, and the official planet points still exist.

200 listpeers <ztaddr> <path> <latency> <version> <role>
200 listpeers 62f865ae71 50.7.252.138/9993;4108;3708 401 - PLANET
200 listpeers 778cde7190 103.195.103.66/9993;4108;3877 233 - PLANET
200 listpeers xxx x.x.x.x/9993;7451;7451 42 1.8.4 LEAF     # I have hidden personal information
200 listpeers cafe04eba9 84.17.53.155/9993;4108;3902 207 - PLANET
200 listpeers cafe9efeb9 104.194.8.134/9993;9557;3927 181 - PLANET

Is this as expected?

@D4rk4
Copy link
Contributor

D4rk4 commented Mar 8, 2022

@jqtmviyu custom planet deployment:
0) Stop zerotier-one

  1. Remove all content of /var/lib/zerotier-one/
  2. place custom plannet to /var/lib/zerotier-one/planet
  3. copy your moons to /var/lib/zerotier-one/moons.d/
  4. start zerotier-one service

P.S. You must have at least one moon, the first moon must be placed on the controller node you can generate it with snippet like:

zerotier-idtool initmoon identity.public > moon.json
ip addr show | grep inet | grep global | awk '{print $2}' | cut -f1 -d/ | sed 's|$|/5061|'

# add stable endpoint at this step
nano moon.json

zerotier-idtool genmoon moon.json
cp *.moon moons.d/

@jradxl
Copy link
Author

jradxl commented Mar 8, 2022

@jqtmviyu

Dockerfile, Line 7, ENV PATCH_ALLOW=1. Needed to run patch.py
With =0, you'll see "PATCH: Nothing to do" in the build log, and that's why you have the 4 Zerotier Planets

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

4 participants