You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2021/11/15 16:07:16 UTC

[GitHub] [solr-operator] dalbani commented on issue #364: JTS and Polygons jar file

dalbani commented on issue #364:
URL: https://github.com/apache/solr-operator/issues/364#issuecomment-969062840


   For those who might be interested in an alternative to @fernaspiazu's trick, here's how I did it:
   ```
   lifecycleHooks:
     postStart:
       exec:
         command:
           - /bin/sh
           - -ceux
           - >
             jts_version=1.18.2 &&
             dir=/opt/bitnami/solr/server/solr-webapp/webapp/WEB-INF/lib &&
             test -f ${dir}/jts-core-${jts_version}.jar ||
             curl -o ${dir}/jts-core-${jts_version}.jar https://repo1.maven.org/maven2/org/locationtech/jts/jts-core/${jts_version}/jts-core-${jts_version}.jar
   ```
   
   Although it works fine for me in practice, this solution probably relies on the `postStart` being called _before_ the app starts up.
   And no such guarantee in terms of timing exists as far as I can read on <https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/>.
   > This hook is executed immediately after a container is created. However, there is no guarantee that the hook will execute before the container ENTRYPOINT.
   
   So your mileage may vary.


-- 
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-unsubscribe@solr.apache.org

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



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