Skip to content

Add env var to skip initdb #107

@JacobHayes

Description

@JacobHayes

I'm trying to build a data container to ship developer databases (up to date migrations, fixture data, etc which are managed elsewhere). We could use a docker-entrypoint-initdb.d script to move a bundled data folder to PGDATA (similar to what's suggested in #105), but then the entire initdb process was a (one time) waste.

I'm proposing a new USE_SEED_DB env var that would skip initdb and instead move everything in a "seed" directory to PGDATA. This would set the expectation that scripts in docker-entrypoint-initdb.d/ would act on the seed db and not a fresh one.

I'm willing to submit a PR for this.

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy