Skip to content

Genralising docker-gen for database use-case #461

Closed
@phil-lello-gb

Description

@phil-lello-gb

I am considering forking docker-gen (which means learning go) to support the following flow:

  • docker-gen listens for enviornment variables DB_HOST, DB_USER, DB_PASSWORD, DB_NAMESPACE (or less offensive generalisation)
  • when a container starts the docker-gen host spits out and applies SQL of a "IF NOT EXISTS CREATE DATABASE xxx; GRANT ALL ON xxx TO yyy' persuasion

From what I can tell, the missing element from the existing software is the list of variables - or perhaps the documentation reflects the initial purpose and this is already possible - making this a "Documentation Request" rather than "Feature Request"

In the considered use-case there may be issues relating to multiple services and host/network naming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions