irods / irods_capability_automated_ingest

Other
12 stars 15 forks source link

`ingest-test` Docker volume mounts a directory in `/tmp` on the host filesystem #235

Open alanking opened 1 month ago

alanking commented 1 month ago

The tests are using a Docker volume so that Celery workers in one container and an iRODS vault in another container can see the same data. We do not need to mount a directory on the host filesystem to do this - just use a Docker volume.

See irods_testing_environment for how to do this: https://github.com/irods/irods_testing_environment/blob/d0934a0c6bbbb4aa94c13a9b7c7e8373558131af/projects/ubuntu-22.04/ubuntu-22.04-postgres-14/docker-compose.yml

The volume is called shared_volume and each service can refer to it as such when mapping a directory inside the container.