Remove the scriptz submodule and hard-commit the files.
The submodule is a leftover from when this project was intended to work as a series of microservices. It was meant to provide common functionality to the builds for every microservice. That's no longer the case, and the submodule is a pain-point both in on-boarding new developers and running the Docker build.
This commit is contained in:
26
script/include/run_get_db_settings.sh
Normal file
26
script/include/run_get_db_settings.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
# get_db_settings: Reads postgres related settings from all of the relevant
|
||||
# config files and then sets them as environment variables
|
||||
|
||||
# Load get_db_settings_functions functions
|
||||
source ./script/include/get_db_settings_functions.inc.sh
|
||||
|
||||
|
||||
# If an OVERRIDE config has been specified, and the file is present,
|
||||
# read those values first
|
||||
if [ ! -z "${OVERRIDE_CONFIG_FULLPATH+is_not_set}" ] &&
|
||||
[ -f "${OVERRIDE_CONFIG_FULLPATH}" ]; then
|
||||
set_db_env_vars "${OVERRIDE_CONFIG_FULLPATH}"
|
||||
fi
|
||||
|
||||
# If FLASK_ENV is set, and a config file exists for it,
|
||||
# allow it to set anything not already defined
|
||||
if [ "${FLASK_ENV}x" != "x" ]; then
|
||||
flask_env_config_file="./config/${FLASK_ENV}.ini"
|
||||
|
||||
if [ -f "${flask_env_config_file}" ]; then
|
||||
set_db_env_vars "${flask_env_config_file}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Finish with the base config file, setting anything that is still unset
|
||||
set_db_env_vars "./config/base.ini"
|
Reference in New Issue
Block a user