guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: hydra: bayfront: Switch to running the nar-herder as a service.


From: Christopher Baines
Subject: 01/02: hydra: bayfront: Switch to running the nar-herder as a service.
Date: Fri, 4 Feb 2022 05:51:00 -0500 (EST)

cbaines pushed a commit to branch master
in repository maintenance.

commit 51147697e526310257b77cb9eddcc83778b21ebc
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Fri Feb 4 10:47:45 2022 +0000

    hydra: bayfront: Switch to running the nar-herder as a service.
    
    Previously it was running in a screen session.
    
    * hydra/bayfront.scm <services>: Add the nar-herder, and update the
    port NGinx uses.
---
 hydra/bayfront.scm | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index bc75a9c..0e2b28a 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -995,9 +995,7 @@ access_log  /var/log/nginx/bordeaux.access.log;"))
                       (servers '("localhost:8745")))
                      (nginx-upstream-configuration
                       (name "nar-herder")
-                      ;; TODO: This is currently running in a screen
-                      ;; session under the cbaines user
-                      (servers '("localhost:8080")))
+                      (servers '("localhost:8734")))
                      (nginx-upstream-configuration
                       (name "nar-storage")
                       (servers '("lakeside.guix.gnu.org:443")))))
@@ -1009,6 +1007,18 @@ access_log  /var/log/nginx/bordeaux.access.log;"))
                        %bordeaux.guix.gnu.org-nginx-servers
                        %coordinator.bayfront.guix.gnu.org-nginx-servers))))
 
+    (service nar-herder-service-type
+             (nar-herder-configuration
+              ;; To make it easy for the guix-build-coordinator hooks
+              ;; to populate the database, run as the
+              ;; guix-build-coordinator user
+              (user "guix-build-coordinator")
+              (group "guix-build-coordinator")
+              (storage "/var/lib/nars")
+              (storage-limit 0)
+              (storage-nar-removal-criteria
+               '((stored-on . "https://lakeside.guix.gnu.org";)))))
+
     (service guix-build-coordinator-service-type
              %guix-build-coordinator-configuration)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]