forked from patinas/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmicrostack.sh
More file actions
44 lines (28 loc) · 872 Bytes
/
microstack.sh
File metadata and controls
44 lines (28 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
while true; do ping -c1 www.google.com > /dev/null && break; done
sudo apt update && sudo apt upgrade -y
sudo apt install curl -y
sudo apt install docker.io docker-compose -y
sudo systemctl enable docker
sudo systemctl start docker
sudo curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up --authkey tskey-auth-kmYWEs4CNTRL-E58dqRPnpjitN4wH1JYshiDnogxNZCqR
sudo chmod +x *.sh
curl https://getmic.ro | bash
sudo chown root:root micro
sudo mv micro /usr/local/bin
sudo apt install xclip -y
sudo apt update && sudo apt upgrade -y
# sudo tee -a "file" <<EOF
#
# EOF
sudo snap install microstack --devmode --edge
# Control Node
sudo microstack init --auto --control
# To get connection-string
sudo microstack add-compute
# Compute node
sudo microstack init --auto --compute --join <connection-string>
sudo tailscale ip -4
echo Done
exit