Skip to content

Environment variable substitution and other entrypoint scripts #431

@rgov

Description

@rgov

I have an entry point script that derives a path and then uses sed to write it into my nginx config.

I recently moved this over to a script in /docker-entrypoint.d. Then I noticed that there is the envsubst script, which maybe I could re-use instead of sed.

However, there is no way for my earlier entry point script to set an environment variable that gets picked up by the envsubst script.

Any thoughts on how this could be accomplished? For instance, I could append to a .env file that gets source'd. I'm also willing to concede it might be overly complicated to try to make such a thing work.

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