diff options
author | Pjotr Prins | 2024-06-21 05:49:56 -0500 |
---|---|---|
committer | Pjotr Prins | 2024-06-21 05:50:06 -0500 |
commit | 02a6d9ebc2e2c160874e2f52412cfc7be67b7231 (patch) | |
tree | eef1842ae4683d6416e61594925d454b956e7990 /topics | |
parent | fb231ce4e8d09c1f910a5be27a76b914149b7a24 (diff) | |
download | gn-gemtext-02a6d9ebc2e2c160874e2f52412cfc7be67b7231.tar.gz |
genecup: updated information - now running as a container
Diffstat (limited to 'topics')
-rw-r--r-- | topics/deploy/genecup.gmi | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/topics/deploy/genecup.gmi b/topics/deploy/genecup.gmi new file mode 100644 index 0000000..2054844 --- /dev/null +++ b/topics/deploy/genecup.gmi @@ -0,0 +1,30 @@ +# Deploying genecup + +On Tux02 as shepherd user I can build: + +``` +./guix/bin/guix build -L ~/services/genecup/guix-past/modules -L ~/services/genecup/guix-bioinformatics genecup-latest-with-tensorflow-native -c 24 -M 8 +``` + +To run genecup in a container we have a trick to include the source code by cd'ing into the built version + +``` +export EDIRECT_PUBMED_MASTER=/export2/PubMed +export TMPDIR=/export/ratspub/tmp +export NLTK_DATA=/export2/PubMed/nltk_data + +# This version for the genecup guix profile which includes guix-bioinformatics, using genecup-channels.scm. +# shepherd@tux02:~/services/genecup$ ./guix/bin/guix build -L ~/services/genecup/guix-past/modules -L ~/services/genecup/guix-bioinformatics genecup-latest-with-tensorflow-native -c 24 -M 8 + +cd /home/shepherd/services/genecup +cd $(/home/shepherd/services/genecup/guix/bin/guix build -L /home/shepherd/services/genecup/guix-past/modules -L /home/shepherd/services/genecup/guix-bioinformatics genecup-latest-with-tensorflow-native -c 4) + +/home/shepherd/services/genecup/guix/bin/guix shell -C -N --expose=/etc/ssl/certs --expose=$EDIRECT_PUBMED_MASTER --share=$TMPDIR -L /home/shepherd/services/genecup/guix-past/modules -L /home/shepherd/services/genecup/guix-bioinformatics genecup-latest-with-tensorflow-native coreutils-minimal -- env TMPDIR=$TMPDIR EDIRECT_PUBMED_MASTER=$EDIRECT_PUBMED_MASTER NLTK_DATA=$NLTK_DATA ./server.py +``` + +That means you can also develop software running in a container with the last command by switching into a repo: + +``` +cd $repo +run last command using guix shell +``` |