diff options
author | Frederick Muriuki Muriithi | 2024-11-18 14:41:52 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-11-18 14:44:33 -0600 |
commit | 7af301caa7d8a5f01e7e3be007e4ba53dc482eee (patch) | |
tree | 11895cd2c9800858086b9693e40030dc2b40eeb3 | |
parent | 405b549e94ebf18fd6f2666723e6995dd2e0a648 (diff) | |
download | gn-guile-7af301caa7d8a5f01e7e3be007e4ba53dc482eee.tar.gz |
Update invocation documentation. Remove unnecessary scripts/manifest
Since we can now use the package file, we no longer need the
invocation scripts we used before, or the manifest I'd written.
-rwxr-xr-x | .guix-shell | 7 | ||||
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | manifest.scm | 23 | ||||
-rw-r--r-- | web/.guix-shell | 8 |
4 files changed, 2 insertions, 43 deletions
diff --git a/.guix-shell b/.guix-shell deleted file mode 100755 index bc81e06..0000000 --- a/.guix-shell +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -# -# . .guix-shell -- guile -L . --fresh-auto-compile --listen=1970 - -echo "Create a shell to run tools." - -guix shell -L ~/guix-bioinformatics -C -D -F --network coreutils guile guile-dbi guile-dbd-mysql guile-fibers guile-json guile-gnutls guile-readline guile-redis openssl nss-certs gemma parallel tar xz python python-lmdb python-cffi guile-gcrypt guile-hashing time gemma-gn2 $* @@ -28,13 +28,10 @@ git clone tux02.genenetwork.org:/home/git/public/gn-guile GNU Guile allows you to develop against a live running web server using emacs-geiser. To try this fire up the web server from the `web` directory as ```sh -cd web -unset GUIX_PROFILE -. .guix-shell -- guile -L .. --fresh-auto-compile --listen=1970 -e main ./webserver.scm 8091 +guix shell --container --network --file=guix.scm -- guile -L . --fresh-auto-compile --listen=1970 -e main web/webserver.scm 8091 ``` -Note the leading dot. The .guix-shell is defined in `gn-guile/web` and loads required packages using GNU Guix. -If you are on Debian you may need to unset GUIX_PROFILE first. +The `--container` option runs the code in an isolated container, and the `--network` option connects that container's networking to the host to allow you to access the running service. ## Welcome to the world of interactive Lisp programming diff --git a/manifest.scm b/manifest.scm deleted file mode 100644 index 80b15ee..0000000 --- a/manifest.scm +++ /dev/null @@ -1,23 +0,0 @@ -(specifications->manifest - '("coreutils" - "guile" - "guile-dbi" - "guile-dbd-mysql" - "guile-fibers" - "guile-json" - "guile-gnutls" - "guile-readline" - "guile-redis" - "openssl" - "nss-certs" - "gemma" - "parallel" - "tar" - "xz" - "python" - "python-lmdb" - "python-cffi" - "guile-gcrypt" - "guile-hashing" - "time" - "gemma-gn2")) diff --git a/web/.guix-shell b/web/.guix-shell deleted file mode 100644 index b4aee2a..0000000 --- a/web/.guix-shell +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -# -# run with options '-- ./webserver.scm 8091' e.g. -# . .guix-shell -- guile -L .. --fresh-auto-compile --listen=1970 -e main ./webserver.scm 8091 - -echo "Note run: running web-server" - -guix shell guile guile-commonmark guile-fibers guile-json guile-gnutls guile-readline guile-redis openssl nss-certs $* |