diff --git a/README.org b/README.org index 741ef76..9472c6e 100644 --- a/README.org +++ b/README.org @@ -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 diff --git a/example-repositories-setup.scm b/example-repositories-setup.scm new file mode 100644 index 0000000..2468a71 --- /dev/null +++ b/example-repositories-setup.scm @@ -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"))))) +