Skip to content

Commit

Permalink
Add instructions for setting up package versions metadata loading to …
Browse files Browse the repository at this point in the history
…INSTALL file
  • Loading branch information
karen-arutyunov committed Aug 9, 2024
1 parent c2c0ee3 commit 728ee46
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions etc/systemd/brep-load.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 728ee46

Please sign in to comment.