mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-18 20:47:53 +00:00
examples files for kube int
This commit is contained in:
parent
183434d30e
commit
169664ffc2
@ -6,7 +6,7 @@ RUN mkdir -p /var/lib/zerotier-one/networks.d
|
||||
ADD *.conf /var/lib/zerotier-one/networks.d/
|
||||
ADD zerotier /
|
||||
ADD zerotier-cli /
|
||||
ADD .zerotierCliSettings <settings path>?>
|
||||
ADD .zerotierCliSettings /root/
|
||||
|
||||
# Install App
|
||||
ADD server.js /
|
||||
|
@ -1,5 +1,16 @@
|
||||
./zerotier
|
||||
zerotier-cli join $(NWID).conf
|
||||
zerotier-cli net-auth $(NWID) $(DEVID)
|
||||
echo '*** ZeroTier-Kubernetes self-auth test script'
|
||||
chown -R daemon /var/lib/zerotier-one
|
||||
chgrp -R daemon /var/lib/zerotier-one
|
||||
su daemon -s /bin/bash -c '/zerotier-one -d -U -p9993 >>/tmp/zerotier-one.out 2>&1'
|
||||
virtip4=""
|
||||
while [ -z "$virtip4" ]; do
|
||||
sleep 0.2
|
||||
virtip4=`/zerotier-cli listnetworks | grep -F $nwid | cut -d ' ' -f 9 | sed 's/,/\n/g' | grep -F '.' | cut -d / -f 1`
|
||||
done
|
||||
echo '*** Up and running at' $virtip4 ' on network: ' $nwid
|
||||
|
||||
echo '*** Self-Authorizing to deployment network'
|
||||
./zerotier-cli join $(NWID).conf
|
||||
./zerotier-cli net-auth $(NWID) $(DEVID)
|
||||
|
||||
# node server.js
|
Loading…
Reference in New Issue
Block a user