HectorYX commited on
Commit
1c3b29b
1 Parent(s): 9eecd59

Update on_startup.sh

Browse files
Files changed (1) hide show
  1. on_startup.sh +31 -5
on_startup.sh CHANGED
@@ -1,5 +1,31 @@
1
- #!/bin/bash
2
- # Write some commands here that will run on root user before startup.
3
- # For example, to clone transformers and install it in dev mode:
4
- # git clone https://github.com/huggingface/transformers.git
5
- # cd transformers && pip install -e ".[dev]"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ touch ~/tailscale.log && touch ~/clusters.log && touch ~/backup.log
4
+
5
+ sudo apt-get install -y python3 python3-dev python3-pip python3-virtualenv \
6
+ libacl1-dev libacl1 \
7
+ libssl-dev \
8
+ liblz4-dev libzstd-dev libxxhash-dev \
9
+ build-essential \
10
+ pkg-config python3-pkgconfig && \
11
+ sudo apt-get install -y libfuse-dev fuse && \ # needed for llfuse
12
+ sudo apt-get install -y libfuse3-dev fuse3 && \ # needed for pyfuse3
13
+
14
+ sudo apt install -y borgbackup &> ~/backup.log
15
+ sudo useradd -m borg && \
16
+ sudo -i -u borg && \
17
+ mkdir .ssh && \
18
+ touch .ssh/authorized_keys &>> ~/backup.log
19
+
20
+ sudo apt-get update
21
+ curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \
22
+ sudo install -y minikube-linux-amd64 /usr/local/bin/minikube && \
23
+ rm minikube-linux-amd64 && \
24
+ minikube start &>> ~/clusters.log
25
+
26
+ curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
27
+ curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
28
+
29
+ sudo apt-get install -y tailscale &> ~/tailscale.log
30
+ sudo systemctl start tailscaled &>> ~/tailscale.log
31
+ sudo tailscale up -ssh &>> ~/tailscale.log