diff options
| author | Pjotr <wrk@bosa.lan> | 2026-10-02 08:02:45 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-10-02 08:02:49 +0000 |
| commit | a6aa7b2d3bc80b4cd3c6aefb9a59c2d5c8ee67c3 (patch) | |
| tree | 1ac248e41fc6c65a743ff50032a0b2ec1af52fba | |
| parent | 4e9b7ddeb57282fa9b3a03a325d6884b420fd0e5 (diff) | |
| download | gn-machines-a6aa7b2d3bc80b4cd3c6aefb9a59c2d5c8ee67c3.tar.gz | |
bnw: fold bnw-README into the container file header
Move the bnw-README content into the header comment of genenetwork/containers/bnw-container.scm and drop the separate file. The content is updated to current reality on the way in: new containers/ path and module layout, the guix-forge load path needed for (forge anubis), the ~/hello-container-key location, the Anubis exemption note, and a pointer to the test suite. bnw.service stays untouched and referenced.
| -rw-r--r-- | genenetwork/containers/bnw-container.scm | 40 | ||||
| -rw-r--r-- | genenetwork/services/bnw-README | 35 |
2 files changed, 34 insertions, 41 deletions
diff --git a/genenetwork/containers/bnw-container.scm b/genenetwork/containers/bnw-container.scm index c455db1..0893232 100644 --- a/genenetwork/containers/bnw-container.scm +++ b/genenetwork/containers/bnw-container.scm @@ -1,8 +1,12 @@ +;;; BNW system container for the run-guix-container daemon. +;;; ;;; The BNW services (bnw-service-type, bnw-nginx-service-type with ;;; the foreground-nginx fix) live in (genenetwork services bnw) and -;;; are shared with the BNW VM (vms/bnw-vm.scm). +;;; are shared with the BNW VM (vms/bnw-vm.scm); the bnw package +;;; definition stays in guix-bioinformatics/gn/packages/bnw.scm. +;;; (This definition moved from guix-bioinformatics/gn/services.) ;;; -;;; Build/run: +;;; Build it with the channels on the load path: ;;; ;;; guix system container --network \ ;;; -L factory/code/guix-bioinformatics \ @@ -10,13 +14,37 @@ ;;; -L factory/code/contrib/guix-forge/guix \ ;;; factory/code/gn-machines/genenetwork/containers/bnw-container.scm ;;; -;;; Web interface on host port 8881 (nginx in the foreground, php-fpm -;;; behind it), ssh on port 2222 with the pinned hello-container-key. -;;; The web UI is protected by the Anubis AI-bot firewall (anubis? #t -;;; on the bnw-nginx-configuration). The GeneNetwork server-to-server +;;; Preferred on hosts running the run-guix-system-container daemon +;;; (listening on 127.0.0.1:8900): start the built container with +;;; +;;; run-guix-container.rb --daemon 127.0.0.1:8900 <HASH> +;;; run-guix-container.rb --daemon 127.0.0.1:8900 --log <HASH> +;;; +;;; Inspect over ssh on port 2222 with the pinned +;;; ~/hello-container-key, or check the web server on port 8881 +;;; (nginx in the foreground, php-fpm behind it). The web UI is +;;; protected by the Anubis AI-bot firewall (anubis? #t on the +;;; bnw-nginx-configuration); the GeneNetwork server-to-server ;;; endpoints (bn_genenet.php, executionprogress_default.php and ;;; /bnw-data/) stay direct -- Anubis must not sit between GN2 and ;;; BNW. +;;; +;;; The legacy way (see the included bnw.service) starts the +;;; container directly from systemd as root: +;;; +;;; $ guix pull +;;; $ cd guix-bioinformatics && git pull +;;; # systemctl enable --now bnw.service +;;; +;;; for upgrades: +;;; +;;; $ guix pull +;;; $ cd guix-bioinformatics && git pull +;;; # systemctl restart bnw.service +;;; +;;; The container tests live in genenetwork/services/test +;;; (run_bnw_container_tests.sh drives the full build/start/test +;;; cycle). (define-module (genenetwork containers bnw-container) #:use-module (gnu) diff --git a/genenetwork/services/bnw-README b/genenetwork/services/bnw-README deleted file mode 100644 index 3c635ff..0000000 --- a/genenetwork/services/bnw-README +++ /dev/null @@ -1,35 +0,0 @@ -SETUP: - -The BNW container definition lives in -genenetwork/services/bnw-container.scm (moved from -guix-bioinformatics/gn/services). The bnw package definition stays in -guix-bioinformatics/gn/packages/bnw.scm. - -Build it with both channels on the load path: - -$ guix system container --network \ - -L /path/to/guix-bioinformatics \ - -L /path/to/gn-machines \ - /path/to/gn-machines/genenetwork/services/bnw-container.scm - -Preferred on hosts running the run-guix-system-container daemon -(listening on 127.0.0.1:8900): start the built container with - -$ run-guix-container.rb --daemon 127.0.0.1:8900 <HASH> -$ run-guix-container.rb --daemon 127.0.0.1:8900 --log <HASH> - -Inspect over ssh on port 2222 with -factory/code/run-guix-container/etc/hello-container-key, or check the -web server on port 8881. - -The legacy way (see included bnw.service) starts the container -directly from systemd as root: - -$ guix pull -$ cd guix-bioinformatics && git pull -# systemctl enable --now bnw.service - -for upgrades: -$ guix pull -$ cd guix-bioinformatics && git pull -# systemctl restart bnw.service |
