Replace documentation on dumps with some example configuration

Since the machine running data.qa.guix.gnu.org doesn't currently have the disk
space to generate dumps.
This commit is contained in:
Christopher Baines 2025-07-11 10:54:58 +01:00
parent 2b6bdcac08
commit 2e91f31559
2 changed files with 25 additions and 10 deletions

View file

@ -65,12 +65,6 @@ allow=.
** Setup the database
Dumps of the database behind data.guix.gnu.org are available at
http://data.guix.gnu.org/dumps, use the following URL to download the latest
small dump.
http://data.guix.gnu.org/dumps/latest/guix_data_service_small.dump
There are multiple ways you can setup the database, the instructions here
involve creating a =guix_data_service= user with a password, then connecting
to the database over the local network interface.
@ -86,12 +80,12 @@ createdb guix_data_service --owner=guix_data_service
You may need to run these commands as the postgres user.
To restore the downloaded dump, run =pg_restore=. This command should prompt
for a password, at which point enter the password for the database user that
you set earlier.
The database contains the configuration for what repositories and build
servers to track, some example configuration is provided and you can load this
in to the database by running:
#+BEGIN_SRC shell
pg_restore --jobs=4 --user=guix_data_service --no-tablespaces --host=127.0.0.1 --dbname=guix_data_service guix_data_service_small.dump
./pre-inst-env guile example-repositories-setup.scm
#+END_SRC
** Set the database paramstring

View file

@ -0,0 +1,21 @@
(use-modules (guix-data-service model git-repository)
(guix-data-service model build-server))
(specify-git-repositories
`(((id . 1)
(url . "https://git.guix.gnu.org/guix.git")
(link_url . "https://codeberg.org/guix/guix.git")
(poll_interval . 600)
(x_git_repo_header . "guix"))))
(specify-build-servers
`(((id . 1)
(url . "https://ci.guix.gnu.org/")
(systems-and-targets . (("x86_64-linux" . "")
("aarch64-linux" . ""))))
((id . 2)
(url . "https://bordeaux.guix.gnu.org/")
(systems-and-targets . (("x86_64-linux" . "")
("aarch64-linux" . "")))
(token-seeds . ("token1")))))