aboutsummaryrefslogtreecommitdiff
path: root/rawhost.sh
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2026-07-07 19:04:17 +0000
committeronelin <oscar@nelin.dk>2026-07-07 19:04:17 +0000
commit56150650dc2f1adfb72301489d926a8a67b82b27 (patch)
tree37001a6463e6efec20ad2e45ba9fcdfacb23d7e0 /rawhost.sh
parentf458a536ac8d732e47a8dce4d92aa2f1b5a2c649 (diff)
Unify docker image
This makes it easier to manage and unifies the services that essentially belong together. Might consider making it a split configuration again later, but for now it makes much more sense such that fail2ban can better operate with all the available logs instead of managing the circus that is docker volumes.
Diffstat (limited to 'rawhost.sh')
-rw-r--r--rawhost.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/rawhost.sh b/rawhost.sh
new file mode 100644
index 0000000..f846266
--- /dev/null
+++ b/rawhost.sh
@@ -0,0 +1,28 @@
+apk add --no-cache gcc make curl linux-headers musl-dev zlib-dev libressl-dev libintl musl-libintl fcgiwrap nginx gitolite
+apk update && apk update
+
+tar -xvf cgit-1.3.tar.xz
+cd ~/cgit-1.3
+make get-git
+
+DESTDIR=pkg NO_REGEX=NeedsStartEnd make install
+
+cd ~/cgit-1.3/pkg
+tar -czvf cgit-1.3.tar.gz .
+
+cp ~/cgit-1.3/pkg/cgit-1.3.tar.gz /cgit-1.3.tar.gz
+
+cd /
+tar -xvf /cgit-1.3.tar.gz
+
+scp cgitrc git.nelin.dk:/etc/
+scp nginx.conf git.nelin.dk:/etc/nginx/http.d/
+scp css_variable_colors.sh git.nelin.dk:/
+
+scp about.html git.nelin.dk:/var/www/htdocs/cgit/
+scp cgit.png git.nelin.dk:/var/www/htdocs/cgit/logo.png
+scp favicon.ico git.nelin.dk:/var/www/htdocs/cgit/
+scp everforest.css git.nelin.dk:/var/www/htdocs/cgit/
+sh css_variable_colors.sh
+
+chmod 750 /var/lib/git