summaryrefslogtreecommitdiff
path: root/issues/systems/apps.gmi
blob: 9da5b72879d4ae86679ccdde3b269b77efdd4cb4 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Apps

GeneNetwork.org retains a number of apps. Currently they are managed by shepherd as `guix shell` services, but we should really move them to system containers.

# Tags

* assigned: pjotrp
* type: enhancement
* status: in progress
* priority: medium
* keywords: system, sheepdog, shepherd

# Tasks

* [ ] Get services running
* [ ] Move guix shell into containers
* [ ] Make sure the container starts up on reboot and/or migrate to a new host

# List of apps

Current apps managed by shepherd on tux02 are

* [+] genecup [shell] (hao)
* [X] bnw [container] (yan cui and rob)
* [ ] genome-browser (defunct)
* [ ] hrdp-project (hao?)
* [+] pluto (saunak)
* [ ] power (dave)
* [ ] root?
* [+] Longevity explorer [container] (dave)
* [ ] singlecell (dave)
* [ ] jumpshiny app (xusheng)
* [+] hegp (pjotr)
* [-] rn6app (hao - remove)

To fix them we need to validate the sheepdog monitor and make sure they are working in either shepherd (+), or as a system container (X).

# Info

## BNW

The app is already a Guix system container! To make it part of the startup I had to move it away from shepherd (which runs in userland) and:

```
/home/shepherd/guix-profiles/bnw/bin/guix system container /home/shepherd/guix-bioinformatics/gn/services/bnw-container.scm --share=/home/shepherd/logs/bnw-server=/var/log --network
ln -s /gnu/store/0hnfb9ynnxsig3yyprwxmg5h6c9g8mry-run-container /usr/local/bin/bnw-app-container
```

systemd service:

```
root@tux02:/etc/systemd/system# cat bnw-app-container.service
[Unit]
Description = Run genenetwork BNW app container
[Service]
ExecStart = /usr/local/bin/bnw-app-container
[Install]
WantedBy = multi-user.target
```

We need to make sure the garbace collector does not destroy the container, add the --root switch

```
/home/shepherd/guix-profiles/bnw/bin/guix system container /home/shepherd/guix-bioinformatics/gn/services/bnw-container.scm --share=/home/shepherd/logs/bnw-server=/var/log --network --root=/usr/local/bin/bnw-app-container
```

Check with

```
root@tux02:/home/shepherd# /home/shepherd/guix-profiles/bnw/bin/guix gc --list-roots |grep bnw
  /usr/local/bin/bnw-app-container
```

## jumpshiny

jgart@balg01:~/gn-machines$ guix system container --network -L . -L ../guix-bioinformatics/ -L ../guix-past/modules/ --substitute-urls='https:
//ci.guix.gnu.org https://bordeaux.guix.gnu.org https://cuirass.genenetwork.org' test-r-container.scm -L ../guix-forge/guix/
/gnu/store/xyks73sf6pk78rvrwf45ik181v0zw8rx-run-container