aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-08-08 19:12:59 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-08-09 12:31:34 +0300
commit728ee46209b9add314fe1fec9bdf4a43b7d7eeb8 (patch)
treea0434ce7011ae33945d605c7b6af73fd1178f4d3
parentc2c0ee3262e497d78a231857aa6d40c7cf25678b (diff)
Add instructions for setting up package versions metadata loading to INSTALL file
-rw-r--r--INSTALL17
-rw-r--r--etc/systemd/brep-load.service1
2 files changed, 18 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index 79d698f..3476de0 100644
--- a/INSTALL
+++ b/INSTALL
@@ -407,6 +407,23 @@ PATH=/usr/local/bin:/bin:/usr/bin
Note that here we assume that bpkg (which is executed by brep-load) is in one
of the PATH's directories (usually /usr/local/bin).
+To additionally load the package metadata (reviews, etc) to the database, the
+brep-load-with-metadata wrapper script can be used instead of brep-load
+directly. In this case, the package git repository that contains the owners/
+metadata directory should be pre-cloned (read-only and shallowly) as follows:
+
+$ git init public-metdata
+$ cd public-metdata
+$ git remote add origin <repository-url>
+$ git config core.sparsecheckout true
+$ echo "owners/" > .git/info/sparse-checkout
+$ git pull --depth=1 origin master
+
+And the above crontab brep-load entry needs to be replaced with the following
+version:
+
+$HOME/install/bin/brep-load-with-metadata --timeout 60 /home/brep/public-metdata $HOME/config/loadtab
+
8.b Setup Periodic Loader, Cleaner, and Monitor Execution with systemd
diff --git a/etc/systemd/brep-load.service b/etc/systemd/brep-load.service
index f9d4e31..7b38225 100644
--- a/etc/systemd/brep-load.service
+++ b/etc/systemd/brep-load.service
@@ -6,6 +6,7 @@ Type=oneshot
#User=brep
#Group=brep
ExecStart=/home/brep/install/bin/brep-load /home/brep/config/loadtab
+#ExecStart=/home/brep/install/bin/brep-load-with-metadata --timeout 60 /home/brep/public-metdata /home/brep/config/loadtab
[Install]
WantedBy=default.target