fernaspiazu opened a new issue #364:
URL: https://github.com/apache/solr-operator/issues/364


   Hi,
   Is there a way to install/download the library `jts-core` in the folder 
`SOLR_INSTALL/server/solr-webapp/webapp/WEB-INF/lib/`? As specified in the 
official guide: 
https://solr.apache.org/guide/8_10/spatial-search.html#jts-and-polygons-flat
   
   Actually, I tried to put in the middle an `initContainer` that downloads 
such jar, but I get obviously a `Permission denied` from the Solr container 
since only root can write on the final solr container.
   
   I tried also to set a `securityContext` only for my `initContainer`, in 
order to run as root, but that configuration has no effect in the 
`initContainer`, I think it is not seen by the Solr CRD.
   
   ```
   podOptions:
     initContainers:
     - name: "install-jts-core"
       image: solr:8.9.0
       command: ['sh', '-c', 'wget -O 
/opt/solr-8.9.0/server/solr-webapp/webapp/WEB-INF/lib/jts-core-1.15.1.jar 
https://repo1.maven.org/maven2/org/locationtech/jts/jts-core/1.15.1/jts-core-1.15.1.jar']
       securityContext:   <--- this has no effect on SolrCloud CRD
         runAsUser: 0
   ```
   
   Another disperate attempt was to set a `podSecurityContext.runAsUser: 0`, so 
for all containers in the pod, but Solr does not run as `root`, I discarded 
that option by the way.
   
   Any hint/idea/solution please?
   
   Thank you very much in advance.


-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to