Skip to content

Values not set when config file does not exist #13

@jpmeijers

Description

@jpmeijers

It can happen that the conf.json file does not exist, but that environment variables are set. In this case gonfig.GetConf returns an error and the variables in the configuration struct are not set.

The reason for no conf.json is that it is not committed to the git repo, but optionally added by Docker.
See:
https://docs.docker.com/engine/swarm/configs/

Workaround

Add an empty conf.json to the repo and hope that it will be overridden by Docker when a config is provided.

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