Repository navigation
9-base: persist DSpace sitemaps in a named volume - #1607
Open
milanmajchrak wants to merge 2 commits into
Open
milanmajchrak wants to merge 2 commits into
milanmajchrak wants to merge 2 commits into
Conversation
Sitemaps live in /dspace/sitemaps inside the backend container and nothing mounted that path, so every image recreate deleted them and sitemap_index.xml was 404 until the 1:15 cron ran again. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
References
Ports this dtq-dev PR:
Related: DSpace PR 1775 (or DSpace PR 1507 alone) creates
/dspace/sitemapsin the backend image.Description
A named
sitemapsvolume on/dspace/sitemapskeeps the generated sitemaps when the backend container is recreated.Instructions for Reviewers
List of changes in this PR:
docker/docker-compose-rest.yml:sitemaps:/dspace/sitemapson thedspaceservice andsitemaps:in the top-level volumes. Same two lines as on dtq-dev.Notes:
/dspace/sitemapsowned bydspace. A new named volume takes that owner, so the webapp can write to it when it runs asdspace.93/fe-docker-ops, which also edits this file. That PR's deploy step also chowns/dspace/sitemaps.sitemap.cron, 01:15), unless you rundocker exec dspace<INSTANCE> /dspace/bin/dspace generate-sitemapsonce.How to test:
docker compose -f docker/docker-compose-rest.yml config --volumeslistssitemaps.generate-sitemaps, recreate the backend container, and/server/sitemaps/sitemap_index.xmlstill answers 200.Codex review (gpt-6.2-sol, high), 1 round: 2 findings, not changed. A new volume starts empty, and an import without
ERASE_DBkeeps the old sitemaps. Both last only until the nightlysitemap.cronrun.Checklist
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.🤖 Generated with Claude Code