hepsw / docks

a set of Dockerfiles defining docker containers for HEP software and appliances.
BSD 3-Clause "New" or "Revised" License
17 stars 13 forks source link

devise a multi-pod system for daemons #6

Closed sbinet closed 9 years ago

sbinet commented 9 years ago

containers needing a daemon running (e.g. sshd, cvmfsd) for correctly exposing or using resources have been relying on .bashrc running a set of scripts (which in turn launch the daemons).

this is very fragile. but containers can't easily run multiple programs (at least that's not the recommanded way of using docker)

the recommanded way is to have a bundle of containers (pods in kubernetes/rkt parlance), where user-container A requests resources or functionalities from container B (e.g. where the cvmfsd daemon runs) this can be done either by sharing VOLUMEs (ie: cvmfsd exposes /cvmfs and container A mounts it) or via port remapping.

we should refactor the cvmfs-xyz images to such a scheme.

sbinet commented 9 years ago

this would address issues like #5

sbinet commented 9 years ago

commit hepsw/cubie@322e96442f1d8ea1f5701d9f4ac048c76183a424 provides a way to run multiple commands from within a container. commit hepsw/docks@bba7282fccae037f201302a95825882b76c5ce99 leverages this for cvmfs-{base,atlas,cms,lhcb,lsst}

the multiple PODs + VOLUME approach doesn't seem like doable for cvmfs.

cubied works.