At the moment, data volume containers are named as a derivative of the original container name: containerName.upper() + '_DATA'
Would it be useful to optionally allow the creation and/or use of specifically named data volume containers?
I can imagine four cases:
- current default: when running
dmysql-server to create a sever named foo, create a data volume container named foo_DATA
- using a pre-existing container (1): if we have
dmysql-server --volumes-from to create a container foo, where --volumes-from is a flag, then link to foo_DATA;
- using a pre-existing container (2): what about if we don't want to automatically generate the named of the linked data volume container? Do we need another parameter, eg
--data-volume NAME that runs as --volumes-from NAME as part of runContainer()? In this case, should we require --volumes-from --data-volume NAME? What should happen if --volumes-from flag is not set (that is, only --data-volume NAME is supplied)? Or should --data-volume NAME force the setting of --volumes-from as true?
- creating a custom named data container: again using eg
--data-volume NAME, rather than running createVolume(containerName.upper() + '_DATA') we run createVolume(NAME)?
If we take this approach, is --data-volume NAME sensible? Or should it be called something else? --data-volume-name NAME ?
At the moment, data volume containers are named as a derivative of the original container name:
containerName.upper() + '_DATA'Would it be useful to optionally allow the creation and/or use of specifically named data volume containers?
I can imagine four cases:
dmysql-serverto create a sever named foo, create a data volume container named foo_DATAdmysql-server --volumes-fromto create a container foo, where--volumes-fromis a flag, then link to foo_DATA;--data-volume NAMEthat runs as--volumes-from NAMEas part ofrunContainer()? In this case, should we require--volumes-from --data-volume NAME? What should happen if--volumes-fromflag is not set (that is, only--data-volume NAMEis supplied)? Or should--data-volume NAMEforce the setting of--volumes-fromas true?--data-volume NAME, rather than runningcreateVolume(containerName.upper() + '_DATA')we runcreateVolume(NAME)?If we take this approach, is
--data-volume NAMEsensible? Or should it be called something else?--data-volume-name NAME?