aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/forge.skb5
-rw-r--r--guix/forge/forge.scm6
-rw-r--r--guix/forge/gunicorn.scm5
3 files changed, 14 insertions, 2 deletions
diff --git a/doc/forge.skb b/doc/forge.skb
index 99d1b86..4f861dd 100644
--- a/doc/forge.skb
+++ b/doc/forge.skb
@@ -1,5 +1,6 @@
;;; guix-forge --- Guix software forge meta-service
;;; Copyright © 2022–2024 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2024 Frederick M. Muriithi <fredmanglis@protonmail.com>
;;;
;;; This file is part of guix-forge.
;;;
@@ -467,6 +468,7 @@ environment])
describing additional directories that should be shared with the
container fcgiwrap is run in]))))
(subsection :title [gunicorn service]
+ :ident "subsection-gunicorn-service"
(p [gunicorn is a specialized web server for Python ,(ref :url
"https://en.wikipedia.org/wiki/Web_Server_Gateway_Interface" :text
"WSGI") applications. We run separate containerized instances of
@@ -494,6 +496,9 @@ describing sockets to listen on])
(record-field "timeout"
[Workers silent for more than this many seconds are
killed and restarted.])
+ (record-field "extra-cli-arguments"
+ [List of strings to pass as additional command-line
+arguments to gunicorn])
(record-field "environment-variables"
[List of ,(record-ref "<environment-variable>") objects
describing environment variables that should be set in the execution
diff --git a/guix/forge/forge.scm b/guix/forge/forge.scm
index 1871a12..624fa31 100644
--- a/guix/forge/forge.scm
+++ b/guix/forge/forge.scm
@@ -30,6 +30,7 @@
#:use-module (gnu services)
#:use-module (gnu services mcron)
#:use-module (guix channels)
+ #:use-module (guix deprecation)
#:use-module (guix gexp)
#:use-module (guix modules)
#:use-module (guix packages)
@@ -193,8 +194,9 @@
(('forge _ ...) #t)
(name (guix-module-name? name))))
-(define* (derivation-job-gexp project job gexp-producer
- #:key (guix-daemon-uri (%daemon-socket-uri)) deep-clone?)
+(define-deprecated (derivation-job-gexp project job gexp-producer
+ #:key (guix-daemon-uri (%daemon-socket-uri)) deep-clone?)
+ guix-channel-job-gexp
"Return a G-expression that builds another G-expression as a
derivation and returns its output path. GEXP-PRODUCER is a
G-expression that expands to a lambda function. The lambda function
diff --git a/guix/forge/gunicorn.scm b/guix/forge/gunicorn.scm
index 148bd53..a86dd7a 100644
--- a/guix/forge/gunicorn.scm
+++ b/guix/forge/gunicorn.scm
@@ -1,5 +1,6 @@
;;; guix-forge --- Guix software forge meta-service
;;; Copyright © 2023–2024 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2024 Frederick M. Muriithi <fredmanglis@protonmail.com>
;;;
;;; This file is part of guix-forge.
;;;
@@ -51,6 +52,7 @@
gunicorn-app-sockets
gunicorn-app-workers
gunicorn-app-timeout
+ gunicorn-app-extra-cli-arguments
gunicorn-app-environment-variables
gunicorn-app-mappings))
@@ -77,6 +79,8 @@
(thunked))
(workers gunicorn-app-workers
(default 1))
+ (extra-cli-arguments gunicorn-app-extra-cli-arguments
+ (default '()))
(environment-variables gunicorn-app-environment-variables
(default '()))
(timeout gunicorn-app-timeout
@@ -197,6 +201,7 @@
"="
#$(environment-variable-value variable))))
(gunicorn-app-environment-variables app))
+ (gunicorn-app-extra-cli-arguments app)
(list (gunicorn-app-wsgi-app-module app)))))
#:user #$name
#:group #$name