nddipiazza opened a new pull request, #2792:
URL: https://github.com/apache/tika/pull/2792
## Summary
Fixes the tika-grpc Docker container startup crash (IOException: Failed to
create directory) caused by pf4j being unable to write temp dirs inside
/tika/plugins when running as non-root user 35002:35002.
## Root Cause
pf4j creates temp directories alongside plugin zip files when unzipping them
(e.g. tika-pipes-google-drive-4.0.0-SNAPSHOT.tmp.<uuid>). The COPY instruction
runs as root so /tika is owned by root. The non-root container user cannot
write there.
## Changes
- tika-grpc/docker-build/Dockerfile: add chown -R ${UID_GID} /tika in the
same RUN step as chmod, before the USER switch.
## Testing
Built and ran locally. Server starts successfully with all 15 pf4j plugins
loaded and logs: Server started, listening on 9090. Previously the container
crashed immediately with IOException.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]