diff options
author | Christopher Baines <mail@cbaines.net> | 2023-06-02 16:29:34 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-06-02 17:08:25 +0100 |
commit | 3913d7a6ab722abb1dadb62d60a50b495f0e5eba (patch) | |
tree | 22d1f43cc8870961264542cd6871b0fdc5d00135 /scripts | |
parent | 39c271ae30cbf7c23cd44f0baf75a3d16752995f (diff) | |
download | bffe-3913d7a6ab722abb1dadb62d60a50b495f0e5eba.tar bffe-3913d7a6ab722abb1dadb62d60a50b495f0e5eba.tar.gz |
Add initial support for submitting builds
This provides similar functionality as provided by the
guix-build-coordinator-queue-builds-from-guix-data-service script, but I think
this is a better place for it.
Currently submitting builds isn't possible from the command line options, but
that could be supported in the future.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/bffe.in | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/scripts/bffe.in b/scripts/bffe.in index b85b2fe..8febcc9 100644 --- a/scripts/bffe.in +++ b/scripts/bffe.in @@ -31,7 +31,7 @@ (gcrypt pk-crypto) (guix pki) (prometheus) - (bffe server)) + (bffe)) (define %options ;; Specifications of the command-line options @@ -116,16 +116,12 @@ (assq-ref opts 'host) (assq-ref opts 'port)) - (let* ((metrics-registry (make-metrics-registry - #:namespace - "bffe"))) - - (start-bffe-web-server - (assq-ref opts 'port) - (assq-ref opts 'host) - (assq-ref opts 'assets-directory) - (assq-ref opts 'event-source) - metrics-registry - #:controller-args - (list (assq-ref opts 'title) - (assq-ref opts 'template-directory))))) + (run-bffe-service + #:web-server-args + (list #:port (assq-ref opts 'port) + #:host (assq-ref opts 'host) + #:assets-directory (assq-ref opts 'assets-directory) + #:events-source (assq-ref opts 'event-source) + #:controller-args + (list #:title (assq-ref opts 'title) + #:template-directory (assq-ref opts 'template-directory))))) |