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

[bitnami/mediawiki] Add env var to control skipping config validation during startup #65729

Merged
merged 3 commits into from
May 7, 2024

Conversation

iain-ilearner
Copy link
Contributor

As suggested/requested in #65721 (comment) here's a PR introducing a new environment variable that controls whether or not validation is performed of configuration file during database upgrade at container start-up.

This allows the use deprecated values (such as $wgAllowImageTag) in LocalSettings.php

This PR also adds a log message after connecting to the database to better indicate which part of the start-up process is running.

Signed-off-by: Iain MacDonald <IJMacD@gmail.com>
@iain-ilearner iain-ilearner changed the title Add env var to control skipping config validation during startup [bitnami/mediawiki] Add env var to control skipping config validation during startup Apr 26, 2024
@carrodher carrodher added verify Execute verification workflow for these changes in-progress labels Apr 27, 2024
@github-actions github-actions bot removed the triage Triage is needed label Apr 27, 2024
@github-actions github-actions bot removed the request for review from javsalgar April 27, 2024 07:42
Copy link
Member

@dgomezleon dgomezleon left a comment

Choose a reason for hiding this comment

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

Thanks a lot for contributing. I suggested some minor changes.

@iain-ilearner
Copy link
Contributor Author

Thank you for taking time to look at this PR, but I'm unable to see any of the minor changes you referred to. Are they in this PR on Github?

Copy link
Member

@dgomezleon dgomezleon left a comment

Choose a reason for hiding this comment

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

Sorry @iain-ilearner .
It seems the suggestions were not submitted.

…diawiki.sh


Thanks for the suggestions

Co-authored-by: David Gomez <davidbhlm@gmail.com>
Signed-off-by: Iain MacDonald <151295347+iain-ilearner@users.noreply.github.com>
Copy link
Member

@dgomezleon dgomezleon left a comment

Choose a reason for hiding this comment

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

Thanks for applying the changes. I also detected that update.php is called in line 127 (first intallation), where this validation could be added too.

Could you please take a look?

@iain-ilearner
Copy link
Contributor Author

The reason I didn't add it on line 127 initially was because line 95 checks if we're in an empty dir before doing the install/upgrade.

I'm not sure how you could get a LocalSettings.php that fails validation at this point but I guess with some weird mounts it might be possible, so I've added the skip config env var here too.

Signed-off-by: Iain MacDonald <IJMacD@gmail.com>
@dgomezleon dgomezleon merged commit 52c3fc6 into bitnami:main May 7, 2024
10 checks passed
@iain-ilearner iain-ilearner deleted the skip-update-validation branch May 13, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mediawiki solved verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants