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

cvmfs-xyz: share cache between containers #11

Open sbinet opened 9 years ago

sbinet commented 9 years ago

currently, 2 cvmfs-atlas containers won't share their cache even if they run the same exact command atlas read-gen-event.py.

one way to fix this is to put a squid container in front of the cvmfs-xyz containers.

another way is to VOLUME-mount CVMFS_CACHE_BASE=/var/scratch/cvmfs in all cvmfs-xyz images and provide a data-only container exporting that VOLUME.

AFAICT, all the possible solutions will require a 2-container (or pod-like) setup.

lukasheinrich commented 8 years ago

does this work perhaps? seems like at least for NFS shares specifying the VOLUME with the ':shared' postfix works

https://github.com/docker/docker/issues/4213

can't test right now since hepsw/cvmfs-atlas:latest is hangint while trying to mount :-/