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:
parent
10d295ff32
commit
735d032865
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue