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

Entrypoint fixes for CA certificates feature #416

Merged
merged 3 commits into from
Aug 14, 2023

Conversation

rassie
Copy link
Contributor

@rassie rassie commented Aug 14, 2023

This PR fixes two problems with current implementation:

  1. /entrypoint.sh is a common file location for custom entrypoint scripts for images without a non-default entrypoint. Putting our entrypoint script there might lead to name clashes.
  2. sh as shebang for the entrypoint scripts destroys environment variables with invalid names (e.g. with dots in them). Using bash as shebang avoids this problem, since bash keeps those variables as-is.

Ref: #392 (#392 (comment))
Fixes: #415

This avoids clashing with pre-existing downstream images which have used a custom entrypoint script at e.g.
/entrypoint.sh
@rassie
Copy link
Contributor Author

rassie commented Aug 14, 2023

@gdams here you go. Do we need the original commit in here?

dockerfile_functions.sh Outdated Show resolved Hide resolved
dockerfile_functions.sh Outdated Show resolved Hide resolved
@rassie
Copy link
Contributor Author

rassie commented Aug 14, 2023

Oh, damn, I need to generate all the stuff first. Sorry, coming right up.

@gdams
Copy link
Member

gdams commented Aug 14, 2023

Oh, damn, I need to generate all the stuff first. Sorry, coming right up.

@rassie no need, the automation will handle that on merge

@gdams gdams enabled auto-merge (squash) August 14, 2023 13:54
@rassie
Copy link
Contributor Author

rassie commented Aug 14, 2023

Oh, damn, I need to generate all the stuff first. Sorry, coming right up.

@rassie no need, the automation will handle that on merge

Oh, cool, didn't know that. Same for tests?

@gdams gdams merged commit 79157bf into adoptium:main Aug 14, 2023
56 checks passed
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.

[Bug]: dotted environment variables are lost
3 participants