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

[hotfix] Refactoring docker-entrypoint.sh to Use Arrays for Configuration Parameters Instead of Eval and String Concatenation #188

Merged

Conversation

JunRuiLee
Copy link

Refactor the docker-entrypoint.sh script as per the suggestions in the comments of docker-library/official-images#16430 (comment)

Copy link
Contributor

@lincoln-lil lincoln-lil left a comment

Choose a reason for hiding this comment

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

+1 (refers to the discussion on docker-library/official-images#16430)


while [ $# -gt 0 ]; do
local key="$1"
local value="$2"

config_params+=" -D${key}=${value}"

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove spaces

…tion Parameters Instead of Eval and String Concatenation
@JunRuiLee JunRuiLee force-pushed the refactor_docerk-entrypoint.sh branch from 999491d to 66d75a3 Compare March 19, 2024 02:18
@JunRuiLee
Copy link
Author

Thanks @lincoln-lil for quick review, I've updated this pr accordingly, PTAL~

@lincoln-lil
Copy link
Contributor

@JunRuiLee Thanks for the updates! LGTM, merging.

@lincoln-lil lincoln-lil merged commit dd78da0 into apache:dev-master Mar 19, 2024
1 check passed
@lincoln-lil
Copy link
Contributor

@JunRuiLee Could you also create a backport pr for dev-1.19?

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