aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-12-10 20:48:57 +0100
committerWojtek Kosior <koszko@koszko.org>2022-12-10 20:48:57 +0100
commit70018fdd7ab23047a97196cb0e6f2d5b2079ff5e (patch)
treea17bdf961dcbe7ea84783b3f6858bc536933920b /Makefile
parent9167ab3e7961164aa2bb580be5ca6f2aa822e61b (diff)
downloadkoszko-org-server-70018fdd7ab23047a97196cb0e6f2d5b2079ff5e.tar.gz
koszko-org-server-70018fdd7ab23047a97196cb0e6f2d5b2079ff5e.zip
add git.koszko.org virtualhost
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 25558e3..27034d7 100644
--- a/Makefile
+++ b/Makefile
@@ -69,6 +69,7 @@ sample-malcontent:
HYDRILLA_WEBSITE_ETC_DIR = $(TEST_ROOT_DIR)/etc/guix-container/hydrilla-website
MALCONTENT_DIR = $(TEST_ROOT_DIR)/var/lib/hydrilla/malcontent_dirs
+GITOLITE_DIR = $(TEST_ROOT_DIR)/var/lib/gitolite3
prepare-test-root: sample-malcontent
rm -rf $(TEST_ROOT_DIR)
@@ -94,6 +95,13 @@ prepare-test-root: sample-malcontent
mkdir -p $(MALCONTENT_DIR)/api_v2
ln -sf api_v2 $(MALCONTENT_DIR)/api_v1
cp -r $</* $(MALCONTENT_DIR)/api_v2/
+ @# Prepare replacement `/var/lib/gitolite3`
+ mkdir -p $(GITOLITE_DIR)/repositories
+ git clone --bare ./subrepos/sheets-websites/ \
+ $(GITOLITE_DIR)/repositories/sheets-websites.git
+ printf "sheets-websites.git\n" > $(GITOLITE_DIR)/projects.list
+ chmod -R o-rwx,g-w $(GITOLITE_DIR)
+ chgrp -R 118 $(GITOLITE_DIR)
GUIX_CONTAINER_FLAGS = -e ./container-runner -p ./pidfile -r $(TEST_ROOT_DIR)