molgenis / molgenis-service-armadillo

Armadillo; a DataSHIELD implementation, part of the MOLGENIS suite
https://molgenis.github.io/molgenis-service-armadillo/
GNU Lesser General Public License v3.0
7 stars 10 forks source link

Make profiles autostart after reboot #531

Closed DickPostma closed 1 year ago

DickPostma commented 1 year ago

In the profile list you start docker-containers like armadillo-rserver or xenon.

After an reboot the docker containers are in a stopped state and should be automatically be started.

clemens-tolboom commented 1 year ago

We could use armadillo API to get list of images or just the data/system/profiles.json

jq '.profiles | .[] | .name' data/system/profiles.json
"rock"
"default"
"xenon"

Then curl ... http://localhost:8080/ds-profiles/<name>/start each of them

Is it ok to have a script for this?

clemens-tolboom commented 1 year ago

Currently I have a dockerctl which I rename to armadilloctl. It needs small changes from the @DickPostma zip version showed.

An server special script can call it to armadilloctl restartAll or sequence of armadilloctl start <name>