diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-10-02 08:11:37 -0500 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-10-02 08:13:08 -0500 |
| commit | e52840b8c104fbe1165d75de993aea1b8db670e7 (patch) | |
| tree | 9ea91956941f0f14615032369eca6d24db70f146 | |
| parent | 27c64bc2a3967d62afb590559dedee8caf27b227 (diff) | |
| download | gn-machines-e52840b8c104fbe1165d75de993aea1b8db670e7.tar.gz | |
remarks
| -rw-r--r-- | genenetwork/containers/bnw-container.scm | 99 | ||||
| -rw-r--r-- | genenetwork/services/container-ssh.scm | 8 |
2 files changed, 55 insertions, 52 deletions
diff --git a/genenetwork/containers/bnw-container.scm b/genenetwork/containers/bnw-container.scm index 3385d40..d03a1c2 100644 --- a/genenetwork/containers/bnw-container.scm +++ b/genenetwork/containers/bnw-container.scm @@ -1,52 +1,55 @@ ;;; 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); the bnw package -;;; definition stays in guix-bioinformatics/gn/packages/bnw.scm. -;;; (This definition moved from guix-bioinformatics/gn/services.) -;;; -;;; Build it with the channels on the load path. The paths below -;;; assume the checkouts sit side by side under a common $base (e.g. -;;; factory/code or ~/guix) -- adapt to your layout: -;;; -;;; guix system container --network \ -;;; -L $base/guix-bioinformatics \ -;;; -L $base/gn-machines \ -;;; -L $base/contrib/guix-forge/guix \ -;;; $base/gn-machines/genenetwork/containers/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 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). + +#! +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); the bnw package +definition stays in guix-bioinformatics/gn/packages/bnw.scm. +(This definition moved from guix-bioinformatics/gn/services.) + +Build it with the channels on the load path: + + base=$HOME/guix + guix system container --network \ + -L $base/guix-bioinformatics \ + -L $base/gn-machines \ + -L $base/contrib/guix-forge/guix \ + $base/gn-machines/genenetwork/containers/bnw-container.scm + +See https://git.genenetwork.org/ for the guix repos. + +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/container-ssh.scm b/genenetwork/services/container-ssh.scm index bbab9b0..7e98e8d 100644 --- a/genenetwork/services/container-ssh.scm +++ b/genenetwork/services/container-ssh.scm @@ -16,10 +16,10 @@ ;; The pinned keys live outside the repository, directly in $HOME ;; (see the Keys section of genenetwork/containers/cgit-container.scm) ;; and are fetched from there at build time: -;; -;; ssh-keygen -t ecdsa -f ~/ssh-container-key -N "" -;; ssh-keygen -t ed25519 -f ~/hello-container-key -N "" -;; +#! + ssh-keygen -t ecdsa -f ~/ssh-container-key -N "" + ssh-keygen -t ed25519 -f ~/hello-container-key -N "" +#! ;; ssh-container-key is the pinned SSH *host* key the containers ;; present; hello-container-key authorizes password-less root logins. (define %key-directory (getenv "HOME")) |
