Merge pull request #41 from gravitl/v0.1

V0.1
This commit is contained in:
Alex 2021-03-29 18:19:34 -04:00 committed by GitHub
commit 548977cc18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 5 deletions

View file

@ -61,11 +61,9 @@ In future releases, we have plans to support other platforms such as Windows and
6. . Click "Create Network" and fill out the details
7. You are now ready to begin using Netmaker. Create a key or enable manual node sign up so that your nodes can connect.
#### On your machines [TODO - This will be updated within the next 24 hours with an install script]:
1. Get the binary: `curl -vLJO -H 'Authorization: token YOUR_ACCESS_TOKEN' 'https://github.com/gravitl/netmaker/releases/download/v0.1/netclient'`
10. Make it executable: `sudo chmod +x netclient`
11. Run the install command: `sudo ./netclient -c install -g <group name> -s <server:port> -k <key value>`
#### On your machines :
Run the following: `curl -sfL https://raw.githubusercontent.com/gravitl/netmaker/v0.1/netclient-install.sh | SERVER_URL=<your server ip>:50051 NET_NAME=<your network name> KEY=<your access key> sh -`
(Note: Key can be left out if manual node signup is enabled)
#### LICENSE

13
netclient-install.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
set -e
[ -z "$SERVER_URL" ] && echo "Need to set SERVER_URL" && exit 1;
[ -z "$NET_NAME" ] && echo "Need to set NET_NAME" && exit 1;
[ -z "$KEY_VALUE" ] && KEY=nokey;
wget -O netclient https://github.com/gravitl/netmaker/releases/download/v0.1/netclient
chmod +x netclient
sudo ./netclient -c install -s $SERVER_URL -g $NET_NAME -k $KEY
rm -f netclient