0.8.0 continuously appends database key to custom config when started · Issue #32 · Kong/docker-kong · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't pickup my postgres in kong.yml unless the DATABASE environment variable is set to "postgres" as well (it's set to cassandra by default). Even then, database: "postgres" is appended to my kong.yml every time I restart the container.
The text was updated successfully, but these errors were encountered:
jusw85
changed the title
0.8.0 continuously appends database key with custom config when started
0.8.0 continuously appends database key to custom config when started
Apr 18, 2016
I guess the check could be changed so that by default it doesn't append anything, but then it's mandatory to specify the DATABASE environment variable or point to configuration file that already has it.
I think the check for DATABASE and appending to kong.yml is only necessary when running with the default kong.yml in Kong Docker, to differentiate between PG and Cassandra database.
With an attached custom kong.yml which has already been prepared, no changes are necessary to this file. Maybe there could be an additional environment variable check in setup.sh e.g. $CUSTOM_KONG_CONFIG if appending is necessary.
if [-z "$CUSTOM_KONG_CONFIG" ]; then
if [ -z "$DATABASE" ]; then
DATABASE="cassandra"
fi
echo -e '\ndatabase: "'$DATABASE'"' >> /etc/kong/kong.yml
fi
Uh oh!
There was an error while loading. Please reload this page.
I've run 0.8.0 with custom config to postgres as follows:
kong.yml
However, setup.sh appends the DATABASE variable to config when run.
kong.yml
It doesn't pickup my postgres in kong.yml unless the DATABASE environment variable is set to "postgres" as well (it's set to cassandra by default). Even then,
database: "postgres"
is appended to my kong.yml every time I restart the container.The text was updated successfully, but these errors were encountered: