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

Add APPEND_NATIVE_ENTRYPOINT variable to lagoon entrypoints, and use for solr9 #963

Merged
merged 4 commits into from
Apr 24, 2024

Conversation

tobybellwood
Copy link
Member

Currently, the lagoon entrypoint script is run in place of the default entrypoint script in the upstream image.

In the case of Solr9, this script contained functionality that was previously in the CMD, and core creation was therefore unable to write to the var/solr directory.

This PR introduces a variable APPEND_NATIVE_ENTRYPOINT that when provided with a path to an entrypoint, will run that provided script after the lagoon entrypoints have concluded.

Additionally, this PR utilises this functionality, and adds tests in for solr9, which had they been there in the first place, would have picked this issue up 🙈

@tobybellwood tobybellwood marked this pull request as ready for review April 16, 2024 23:23
Copy link
Contributor

@bomoko bomoko left a comment

Choose a reason for hiding this comment

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

Makes sense and looks good.

images/commons/lagoon/entrypoints.sh Outdated Show resolved Hide resolved
@tobybellwood tobybellwood merged commit 7cfdce2 into main Apr 24, 2024
1 check passed
@tobybellwood tobybellwood deleted the solr-directory-create branch July 28, 2024 22:28
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