Edit this page | Blame

GN Services



First make sure to have a stable guix checkout. E.g.

gn3@tux01:~/production/gn-proxy$ /home/wrk/opt/guix-pull/bin/guix pull -p ~/opt/guix-pull

In addition to gn1 and gn2 we have 3 running gn3 services:

gn-proxy - deployed as gn3 user in production

gn-proxy runs in systemd. See

Test with

curl localhost:8080/version

curl https://genenetwork.org/gn3-proxy/version

To deploy by hand use

su gn3
alias guix=~/opt/guix/bin/guix
source .guix-deploy
raco pkg install --auto
env TMPDIR=/home/gn3/tmp SQL_USER=*** SQL_PASSWORD=*** racket -L info server/rest.rkt

gn3 aliases

Test with

curl http://localhost:8000/gene/aliases/BRCA2

curl http://localhost:8000/
[ "Hello GeneNetwork3!"  ]

curl https://genenetwork.org/gn3
[ "Hello GeneNetwork3!"  ]

curl https://luna.genenetwork.org/gn3/
[ "Hello GeneNetwork3!"  ]

genenetwork3 (python3)

If the menu does not load, this is the culprit. It should be an external API link.

gn3@tux02:~/production/genenetwork3$ env GUIX_PACKAGE_PATH=~/guix-bioinformatics/ ~/opt/guix-gn3/bin/guix shell -C -D --network --expose=/home/gn2/production/genotype_files/ -f guix.scm -- gunicorn --bind --workers 8 --keep-alive 6000 --max-requests 10 --max-requests-jitter 5 --timeout 1200 wsgi:app

Test with

curl localhost:8087/api/version
curl localhost:8087/api/menu/generate/json
curl https://genenetwork.org/api3/api/version
curl https://genenetwork.org/api3/api/menu/generate/json
curl -L https://luna.genenetwork.org/api3/version

note the menu is more recent GN3.

On epysode:



System container

systemctl stop genenetwork-development-container
mv /var/guix-containers /export2
systemctl start genenetwork-development-container

The commit that changes the mounts is at

See also

(made with skribilo)