When moving from a local development environment to the cloud, e.g. Docker swarm or Kubernetes, you often need a way to access local files. However, in the cloud your local file system cannot be accessed anymore, so you need a way to copy your local files to a volume and mount that instead. This is the purpose of the script. You supply it with the volume name (e.g. schemas
) and the local folder containing the schemas, e.g. ../../schemas
, and a schemas
volume is created, containing all data that is copied into the container.
./create_volume.sh schemas ../../schemas