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

Support GEL_XXX environment variables #96

Merged
merged 11 commits into from
Feb 14, 2025
Merged

Support GEL_XXX environment variables #96

merged 11 commits into from
Feb 14, 2025

Conversation

fmoor
Copy link
Member

@fmoor fmoor commented Feb 12, 2025

No description provided.

README.md Outdated Show resolved Hide resolved
@msullivan msullivan requested review from elprans and fantix February 13, 2025 00:39
README.md Outdated Show resolved Hide resolved
if [ -z "${file_var_val}" ] && [ -n "${old_file_var_val}" ]; then
file_var_val="${old_file_var_val}"
unset "$old_file_var"
if [ "$var" == "GEL_SERVER_PASSWORD" ] || [ "$var" == "GEL_SERVER_PORT" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we recognize the client version of these two variables GEL_PASSWORD and GEL_PORT. But only for those two.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you point to where exactly these are handled? AFAICS neither the entrypoint nor the server itself handle these.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The usage is obfuscated with bash variable interpolation. Before this PR:

The check here would give a deprecation warning for the client form of envvars EXCEPT for EDGEDB_PORT and EDGEDB_PASSWORD see edbdocker_env_var_deprecated.

Then the value of these variables is used here.

We also use EDGEDB_PASSWORD in a test composed app works.

fmoor and others added 3 commits February 13, 2025 09:35
Co-authored-by: Elvis Pranskevichus <[email protected]>
Co-authored-by: Elvis Pranskevichus <[email protected]>
@fmoor fmoor merged commit 59a9349 into master Feb 14, 2025
1 check passed
@fmoor fmoor deleted the fmoor/gel-vars branch February 14, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants