Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Couch] Update init scripts to avoid setting build environment variables outside of the .env file #7893

Open
unlikelyzero opened this issue Oct 16, 2024 · 0 comments
Labels
type:maintenance tests, chores, or project maintenance

Comments

@unlikelyzero
Copy link
Collaborator

Summary

To maintain some semblance of sanity, we need to ensure we have a totally declarative build process. We need to remove any default runtime parameters from the couchdb scripting.

check_env_var() {
if [ -z "$1" ]; then
echo "$2 has no value" 1>&2
exit 1
fi
}
check_env_var "${OPENMCT_DATABASE_NAME}" "OPENMCT_DATABASE_NAME"
check_env_var "${COUCH_ADMIN_USER}" "COUCH_ADMIN_USER"
check_env_var "${COUCH_BASE_LOCAL}" "COUCH_BASE_LOCAL"

@unlikelyzero unlikelyzero added the type:maintenance tests, chores, or project maintenance label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:maintenance tests, chores, or project maintenance
Projects
None yet
Development

No branches or pull requests

1 participant