FNNDSC / pman

A process management system written in python
MIT License
23 stars 33 forks source link

Autodetect STOREBASE from pfcon #165

Closed jennydaman closed 2 years ago

jennydaman commented 3 years ago

If STOREBASE is undefined, then

  1. find a container with the label org.chrisproject.role=pfcon
  2. list all of its volumes
  3. find a volume which is mounted to /home/localuser/storeBase
  4. find the path on host for that volume
  5. set self.STOREBASE to path on host
jennydaman commented 3 years ago

Doesn't work when deployed using docker stack deploy and pman lands on a different node than pfcon. Nonetheless this code is very useful for single-machine deployment.