Add default config to image
This commit is contained in:
parent
11e055fe39
commit
933a61cc4c
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ COPY stuff/chainqueryconfig.toml /etc/chainquery/
|
||||||
|
|
||||||
## Get latest chainqueryconfig.toml from master on github as template.
|
## Get latest chainqueryconfig.toml from master on github as template.
|
||||||
# TODO: add magic which pattern matches for chainqueryconfig.toml DEFAULT strings and replaces them with configured settings on container start.
|
# TODO: add magic which pattern matches for chainqueryconfig.toml DEFAULT strings and replaces them with configured settings on container start.
|
||||||
# ADD --chown=1000:1000 https://raw.githubusercontent.com/lbryio/chainquery/master/config/default/chainqueryconfig.toml /etc/chainquery/chainqueryconfig.toml.orig
|
ADD --chown=1000:1000 https://raw.githubusercontent.com/lbryio/chainquery/master/config/default/chainqueryconfig.toml /etc/chainquery/chainqueryconfig.toml.orig
|
||||||
|
|
||||||
## Install start.sh as executable script in container $PATH
|
## Install start.sh as executable script in container $PATH
|
||||||
COPY stuff/start.sh /usr/local/bin/start
|
COPY stuff/start.sh /usr/local/bin/start
|
||||||
|
|
|
@ -22,7 +22,7 @@ CONFIG_SETTINGS=(
|
||||||
APIMYSQLDSN
|
APIMYSQLDSN
|
||||||
)
|
)
|
||||||
|
|
||||||
function set_configs(parameter) {
|
function set_configs() {
|
||||||
## Set configs on container start if not already set.
|
## Set configs on container start if not already set.
|
||||||
for i in "${!CONFIG_SETTINGS[@]}"; do
|
for i in "${!CONFIG_SETTINGS[@]}"; do
|
||||||
echo ${CONFIG_SETTINGS[$i]}"_KEY"
|
echo ${CONFIG_SETTINGS[$i]}"_KEY"
|
||||||
|
|
Loading…
Reference in a new issue