components/dis: Properly load config file

This commit updates the 'component/dis' Dockerfile to properly load the
config file from an environment variable.
This commit is contained in:
Tom Wiesing 2022-09-17 12:11:43 +02:00
parent 10d295ff32
commit 735d032865
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View file

@ -27,9 +27,14 @@ func NewDistillery(params core.Params, flags core.Flags, req core.Requirements)
},
}
// we are within the docker
//
// so setup the ports to connect everything to peroperly.
// also override some of the parameters for the environment.
if flags.InternalInDocker {
dis.Upstream.SQL = "sql:3306"
dis.Upstream.Triplestore = "triplestore:7200"
params.ConfigPath = os.Getenv("CONFIG_PATH")
}
// if we don't need to load the config, there is nothing to do