Skip to content

Naming data containers #2

@psychemedia

Description

@psychemedia

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions