Repository navigation
[dtq-dev-93] Port the Handle server, S3 and log settings of the 7.x backend compose files - #1763
Open
milanmajchrak wants to merge 3 commits into
Open
milanmajchrak wants to merge 3 commits into
milanmajchrak wants to merge 3 commits into
Conversation
The backend compose files get the S3 variables, log volumes and Handle server ports of the 7.x files. The deploy hands the copied assetstore to the dspace user, because the backend image no longer runs as root. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The backend image now uses 8010 for the Handle server HTTP port, and runs as dspace, so the deploy gives the volumes left by the root image to that user. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The chown runs only when a volume still has files not owned by dspace, and the restart lets the webapp open its log files again. Co-Authored-By: Claude Opus 5.5 <[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
docker/docker-compose-rest.ymlanddocker/cli.ymlon dtq-dev: S3 from eef127f, Handle server ports from 533d8d1. Thechownin the deploy is from Use userdspacefor the dspace container #1124.93/be-docker-ops(images run asdspace, Handle HTTP port 8010). Merge this one right after that image is built. A deploy in between runs the new image on root-owned volumes without thechown.Description
The backend compose files get the S3 variables, the log volumes and the Handle server ports from 7.x. The deploy gives the volumes to the
dspaceuser that the backend now runs as.Instructions for Reviewers
List of changes in this PR:
docker-compose-rest.yml,dspaceservice: the 7.xS3_*variables with the same defaults (S3 off).pathStyleAccessEnabledis gone, because v9 always uses path style when an endpoint is set. These variables override the same keys inlocal.cfg, as in 7.x.dspace_logs(/dspace/log) andhandle_server(/dspace/handle-server). The entrypoint starts the Handle server only whenmake-handle-confighas writtenconfig.dct.dspacesolr: volumesolr_logson/var/solr/logs.cli.yml: the same S3 variables and adspace_cli_logsvolume.deploy.yml:chown -R dspace:dspace /dspace/assetstoreafterdocker cp, as on dtq-dev. It is skipped on an image without thedspaceuser, which runs as root anyway.up -d, the 8603 deploy gives the volumes made by the root image todspaceand restarts the container, but only when a file there is not owned bydspaceyet. If the container cannot be reached, the step fails. The probe warns when 2641 or 8010 are not replaced by the instance overlay.To turn on the Handle server on an instance:
docker exec dspace<INSTANCE> /dspace/bin/make-handle-config, then restart the container. The 8603 overlay replaces the ports withports: !override, so it must publish the Handle ports itself.How to test:
docker compose -f docker/docker-compose.yml -f docker/docker-compose-rest.yml configanddocker compose -f docker/docker-compose-rest.yml -f docker/cli.yml configare valid and show the new variables, ports and volumes.copy assetstorestep, and uploading a file works.chownand no restart this time.Codex review (gpt-6.2-sol, high), 2 rounds: 2 findings fixed (the import
chownfailed on an image without thedspaceuser, a failed ownership probe passed as clean). The last round found 4 more, not changed in this PR:up -d. If the container is already crash-looping, the deploy fails before the repair.S3_*variables override S3 settings inlocal.cfg. 7.x does the same.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