<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SOLR change shared.properties in Docker image in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/solr-change-shared-properties-in-docker-image/m-p/76199#M24126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having trouble trying to change the SOLR 6 shared.properties file starting from the Docker image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In particular I would like to enable the cross locale search, so I have my own Dockerfile where I replace the string "# alfresco.cross" with "alfresco.cross", so that it will be uncommented in the resulting file.&lt;/P&gt;&lt;PRE&gt;FROM alfresco/alfresco-search-services:1.3.0.1 &lt;BR /&gt;RUN mv /opt/alfresco-search-services/logs/log4j.properties /opt/alfresco-search-services/log4j.properties &lt;BR /&gt;RUN sed -i 's/LOG4J_PROPS=$SOLR_LOGS_DIR\/log4j.properties/LOG4J_PROPS=$SOLR_LOGS_DIR\/..\/log4j.properties/g' /opt/alfresco-search-services/solr.in.sh &lt;BR /&gt;RUN sed -i 's/# alfresco.cross/alfresco.cross/g' /opt/alfresco-search-services/solrhome/conf/shared.properties &amp;amp;&amp;amp; cat /opt/alfresco-search-services/solrhome/conf/shared.properties  &lt;BR /&gt;RUN cat /opt/alfresco-search-services/solrhome/conf/shared.properties&lt;/PRE&gt;&lt;P&gt;Below the output that I get:&lt;/P&gt;&lt;PRE&gt;Sending build context to Docker daemon 2.56kB&lt;BR /&gt;Step 1/5 : FROM alfresco/alfresco-search-services:1.3.0.1&lt;BR /&gt; ---&amp;gt; 910edf913574&lt;BR /&gt;Step 2/5 : RUN mv /opt/alfresco-search-services/logs/log4j.properties /opt/alfresco-search-services/log4j.properties&lt;BR /&gt; ---&amp;gt; Running in 60dea36a9d5d&lt;BR /&gt;Removing intermediate container 60dea36a9d5d&lt;BR /&gt; ---&amp;gt; f33fc3b1ba7a&lt;BR /&gt;Step 3/5 : RUN sed -i 's/LOG4J_PROPS=$SOLR_LOGS_DIR\/log4j.properties/LOG4J_PROPS=$SOLR_LOGS_DIR\/..\/log4j.properties/g' /opt/alfresco-search-services/solr.in.sh&lt;BR /&gt; ---&amp;gt; Running in 27ff531c84e4&lt;BR /&gt;Removing intermediate container 27ff531c84e4&lt;BR /&gt; ---&amp;gt; 4f6b7ce49037&lt;BR /&gt;Step 4/5 : RUN sed -i 's/# alfresco.cross/alfresco.cross/g' /opt/alfresco-search-services/solrhome/conf/shared.properties &amp;amp;&amp;amp; cat /opt/alfresco-search-services/solrhome/conf/shared.properties&lt;BR /&gt; ---&amp;gt; Running in 277f661cc083&lt;BR /&gt;&lt;BR /&gt;# Shared Properties file&lt;BR /&gt;&lt;BR /&gt;#Host details an external client would use to connect to Solr&lt;BR /&gt;solr.host=localhost&lt;BR /&gt;#If not set then solr.port will be the jetty.port&lt;BR /&gt;#solr.port=8983&lt;BR /&gt;solr.baseurl=/solr&lt;BR /&gt;&lt;BR /&gt;# Properties treated as identifiers when indexed&lt;BR /&gt;&lt;BR /&gt;alfresco.identifier.property.0={http://www.alfresco.org/model/content/1.0}creator&lt;BR /&gt;alfresco.identifier.property.1={http://www.alfresco.org/model/content/1.0}modifier&lt;BR /&gt;alfresco.identifier.property.2={http://www.alfresco.org/model/content/1.0}userName&lt;BR /&gt;alfresco.identifier.property.3={http://www.alfresco.org/model/content/1.0}authorityName&lt;BR /&gt;alfresco.identifier.property.4={http://www.alfresco.org/model/content/1.0}lockOwner&lt;BR /&gt;&lt;BR /&gt;# Suggestable Propeties&lt;BR /&gt;#alfresco.suggestable.property.0={http://www.alfresco.org/model/content/1.0}name&lt;BR /&gt;#alfresco.suggestable.property.1={http://www.alfresco.org/model/content/1.0}title&lt;BR /&gt;#alfresco.suggestable.property.2={http://www.alfresco.org/model/content/1.0}description&lt;BR /&gt;#alfresco.suggestable.property.3={http://www.alfresco.org/model/content/1.0}content&lt;BR /&gt;&lt;BR /&gt;# Data types that support cross locale/word splitting/token patterns if tokenised&lt;BR /&gt;alfresco.cross.locale.property.0={http://www.alfresco.org/model/content/1.0}name&lt;BR /&gt;alfresco.cross.locale.property.1={http://www.alfresco.org/model/content/1.0}lockOwner&lt;BR /&gt;&lt;BR /&gt;# Data types that support cross locale/word splitting/token patterns if tokenised&lt;BR /&gt;alfresco.cross.locale.datatype.0={http://www.alfresco.org/model/dictionary/1.0}text&lt;BR /&gt;alfresco.cross.locale.datatype.1={http://www.alfresco.org/model/dictionary/1.0}content&lt;BR /&gt;alfresco.cross.locale.datatype.2={http://www.alfresco.org/model/dictionary/1.0}mltext&lt;BR /&gt;&lt;BR /&gt;alfresco.model.tracker.cron=0/10 * * * * ? *Removing intermediate container 277f661cc083&lt;BR /&gt; ---&amp;gt; 0fd2e2d0f296&lt;BR /&gt;Step 5/5 : RUN cat /opt/alfresco-search-services/solrhome/conf/shared.properties&lt;BR /&gt; ---&amp;gt; Running in 9e905642f252&lt;BR /&gt;&lt;BR /&gt;# Shared Properties file&lt;BR /&gt;&lt;BR /&gt;#Host details an external client would use to connect to Solr&lt;BR /&gt;solr.host=localhost&lt;BR /&gt;#If not set then solr.port will be the jetty.port&lt;BR /&gt;#solr.port=8983&lt;BR /&gt;solr.baseurl=/solr&lt;BR /&gt;&lt;BR /&gt;# Properties treated as identifiers when indexed&lt;BR /&gt;&lt;BR /&gt;alfresco.identifier.property.0={http://www.alfresco.org/model/content/1.0}creator&lt;BR /&gt;alfresco.identifier.property.1={http://www.alfresco.org/model/content/1.0}modifier&lt;BR /&gt;alfresco.identifier.property.2={http://www.alfresco.org/model/content/1.0}userName&lt;BR /&gt;alfresco.identifier.property.3={http://www.alfresco.org/model/content/1.0}authorityName&lt;BR /&gt;alfresco.identifier.property.4={http://www.alfresco.org/model/content/1.0}lockOwner&lt;BR /&gt;&lt;BR /&gt;# Suggestable Propeties&lt;BR /&gt;#alfresco.suggestable.property.0={http://www.alfresco.org/model/content/1.0}name&lt;BR /&gt;#alfresco.suggestable.property.1={http://www.alfresco.org/model/content/1.0}title&lt;BR /&gt;#alfresco.suggestable.property.2={http://www.alfresco.org/model/content/1.0}description&lt;BR /&gt;#alfresco.suggestable.property.3={http://www.alfresco.org/model/content/1.0}content&lt;BR /&gt;&lt;BR /&gt;# Data types that support cross locale/word splitting/token patterns if tokenised&lt;BR /&gt;alfresco.cross.locale.property.0={http://www.alfresco.org/model/content/1.0}name&lt;BR /&gt;alfresco.cross.locale.property.1={http://www.alfresco.org/model/content/1.0}lockOwner&lt;BR /&gt;&lt;BR /&gt;# Data types that support cross locale/word splitting/token patterns if tokenised&lt;BR /&gt;# alfresco.cross.locale.datatype.0={http://www.alfresco.org/model/dictionary/1.0}text&lt;BR /&gt;# alfresco.cross.locale.datatype.1={http://www.alfresco.org/model/dictionary/1.0}content&lt;BR /&gt;# alfresco.cross.locale.datatype.2={http://www.alfresco.org/model/dictionary/1.0}mltext&lt;BR /&gt;&lt;BR /&gt;alfresco.model.tracker.cron=0/10 * * * * ? *Removing intermediate container 9e905642f252&lt;BR /&gt; ---&amp;gt; 6b48062689fa&lt;BR /&gt;Successfully built 6b48062689fa&lt;BR /&gt;Successfully tagged custom-solr:1.3.0.1&lt;/PRE&gt;&lt;P&gt;As you can see when I run the "cat" the first time the properties get uncommented, but when I run it a second time the file hasn't changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I pass these properties to the SOLR_OPTS instead, so that I can leave the shared.properties unchanged?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ludovico&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2019 12:09:02 GMT</pubDate>
    <dc:creator>ajeje93</dc:creator>
    <dc:date>2019-03-01T12:09:02Z</dc:date>
    <item>
      <title>SOLR change shared.properties in Docker image</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solr-change-shared-properties-in-docker-image/m-p/76199#M24126</link>
      <description>Hello everyone,I am having trouble trying to change the SOLR 6 shared.properties file starting from the Docker image.In particular I would like to enable the cross locale search, so I have my own Dockerfile where I replace the string "# alfresco.cross" with "alfresco.cross", so that it will be uncom</description>
      <pubDate>Fri, 01 Mar 2019 12:09:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solr-change-shared-properties-in-docker-image/m-p/76199#M24126</guid>
      <dc:creator>ajeje93</dc:creator>
      <dc:date>2019-03-01T12:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: SOLR change shared.properties in Docker image</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solr-change-shared-properties-in-docker-image/m-p/76200#M24127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the end I created a configmap in Kubernetes and mounted it as a volume to override the configuration. Howevere, I would like to know anyways how to perform this operation because it can be useful when starting Alfresco using Docker Compose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 14:12:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solr-change-shared-properties-in-docker-image/m-p/76200#M24127</guid>
      <dc:creator>ajeje93</dc:creator>
      <dc:date>2019-03-01T14:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: SOLR change shared.properties in Docker image</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solr-change-shared-properties-in-docker-image/m-p/76201#M24128</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to configure alfresco.cron SOLR property in my docker-compose.yml file within SOLR_OPTS. And I try to do that, like this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;ng-office-ass&lt;/SPAN&gt;:&lt;BR /&gt;  &lt;SPAN&gt;image&lt;/SPAN&gt;: alfresco/alfresco-search-services:2.0.1&lt;BR /&gt;  &lt;SPAN&gt;environment&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;SOLR_ALFRESCO_HOST&lt;/SPAN&gt;: ng-office-acs&lt;BR /&gt;    &lt;SPAN&gt;SOLR_ALFRESCO_PORT&lt;/SPAN&gt;: 8080&lt;BR /&gt;    &lt;SPAN&gt;SOLR_SOLR_HOST&lt;/SPAN&gt;: ng-office-ass&lt;BR /&gt;    &lt;SPAN&gt;SOLR_SOLR_PORT&lt;/SPAN&gt;: 8983&lt;BR /&gt;    &lt;SPAN&gt;SOLR_CREATE_ALFRESCO_DEFAULTS&lt;/SPAN&gt;: alfresco,archive&lt;BR /&gt;    &lt;SPAN&gt;ALFRESCO_SECURE_COMMS&lt;/SPAN&gt;: none&lt;BR /&gt;    &lt;SPAN&gt;SOLR_OPTS&lt;/SPAN&gt;: "&lt;SPAN&gt;$SOLR_OPTS -Dalfresco.cron=0/2 * * * * ? *"&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;ports&lt;/SPAN&gt;:&lt;BR /&gt;    - &lt;SPAN&gt;"8983:8983"&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;volumes&lt;/SPAN&gt;:&lt;BR /&gt;    - ng-office-ass-volume:/opt/alfresco-search-services/contentstore&lt;BR /&gt;    - ng-office-ass-volume:/opt/alfresco-search-services/data&lt;BR /&gt;  &lt;SPAN&gt;depends_on&lt;/SPAN&gt;:&lt;BR /&gt;    - ng-office-acs&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But the result is the next error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ng-office-ass_1 | Error: Could not find or load main class contentstore&lt;BR /&gt;ng-office-ass_1 | Caused by: java.lang.ClassNotFoundException: contentstore&lt;/P&gt;&lt;P&gt;A also tried to add this property as a new "JAVA_OPTS" entry. I didn't get any error message, but after I checked solrcore. properties file in my ass container I can see that alfresco.cron property is the same.&lt;/P&gt;&lt;P&gt;I read all the documentation, and I cannot found how to configure solr properties(&lt;A href="https://docs.alfresco.com/search-services/latest/config/properties/#solr-core-configuration-properties" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/search-services/latest/config/properties/#solr-core-configuration-properti...&lt;/A&gt;) in the docker-comose.yml file.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 15:22:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solr-change-shared-properties-in-docker-image/m-p/76201#M24128</guid>
      <dc:creator>jelenajjovanosk</dc:creator>
      <dc:date>2021-08-05T15:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: SOLR change shared.properties in Docker image</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solr-change-shared-properties-in-docker-image/m-p/76202#M24129</link>
      <description>&lt;P&gt;You need to extend default Search Services Docker Image in order to add/modify the properties. Java Envs are not supported.&lt;/P&gt;
&lt;P&gt;This is a sample on how to do that:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/aborroy/alfresco-solr-docker-mtls/blob/master/search/Dockerfile#L17" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/aborroy/alfresco-solr-docker-mtls/blob/master/search/Dockerfile#L17&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 07:05:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solr-change-shared-properties-in-docker-image/m-p/76202#M24129</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2021-08-06T07:05:19Z</dc:date>
    </item>
  </channel>
</rss>

