summaryrefslogtreecommitdiff
path: root/.config/yadm
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-11-14 13:33:14 +0100
committerDaniel Weipert <code@drogueronin.de>2023-11-14 13:33:14 +0100
commit9b41dbdcb2c810804417b9ffc4e74a7b3e534ac2 (patch)
treec4cf9ace30d0cd35aebb6ac70f2be43b1371f5d6 /.config/yadm
initial commit
Diffstat (limited to '.config/yadm')
l---------.config/yadm/bootstrap1
-rw-r--r--.config/yadm/bootstrap##distro.Ubuntu29
2 files changed, 30 insertions, 0 deletions
diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap
new file mode 120000
index 0000000..c57c56e
--- /dev/null
+++ b/.config/yadm/bootstrap
@@ -0,0 +1 @@
+bootstrap##distro.Ubuntu \ No newline at end of file
diff --git a/.config/yadm/bootstrap##distro.Ubuntu b/.config/yadm/bootstrap##distro.Ubuntu
new file mode 100644
index 0000000..6ff7558
--- /dev/null
+++ b/.config/yadm/bootstrap##distro.Ubuntu
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+sudo apt update
+sudo apt install -y \
+ zsh neovim man-db
+
+chsh -s /bin/zsh
+
+
+# docker
+sudo apt install -y \
+ ca-certificates curl gnupg
+
+sudo install -m 0775 -d /etc/apt/keyrings
+curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
+sudo chmod a+r /etc/apt/keyrings/docker.gpg
+
+echo \
+ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
+ "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
+ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
+
+sudo apt update
+sudo apt install -y \
+ docker-ce docker-compose
+
+usermod -a -G docker $(whoami)
+sudo service docker enable
+sudo service docker start