<?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 Re: alfresco-global.properties location in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145384#M38546</link>
    <description>&lt;P&gt;All amp files which will be placed by you in the folder ./build-config/alfresco/extensions will be installed during custom image will be creating.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 10:08:52 GMT</pubDate>
    <dc:creator>fedorow</dc:creator>
    <dc:date>2021-07-09T10:08:52Z</dc:date>
    <item>
      <title>alfresco-global.properties location</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145380#M38542</link>
      <description>&lt;P&gt;i am facing difficulties in finding the&amp;nbsp;alfresco-global.properties file . i am using docker to run alfreso community editon 7.0&lt;/P&gt;&lt;P&gt;how can i access this file&amp;nbsp; and update this file.can any one help me out&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 11:38:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145380#M38542</guid>
      <dc:creator>waqar</dc:creator>
      <dc:date>2021-07-08T11:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco-global.properties location</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145381#M38543</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You should have it on {installation_path}/volumes/config/alfresco-global.properties E.g.: /opt/alfresco/volumes/config/alfresco-global.properties&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Cristina.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 13:47:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145381#M38543</guid>
      <dc:creator>cristinamr</dc:creator>
      <dc:date>2021-07-08T13:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco-global.properties location</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145382#M38544</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86332"&gt;@waqar&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;i am facing difficulties in finding the&amp;nbsp;alfresco-global.properties file . i am using docker to run alfreso community editon 7.0&lt;/P&gt;
&lt;P&gt;how can i access this file&amp;nbsp; and update this file.can any one help me out&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The alfresco-global.properties in ACS container is usually&amp;nbsp;&lt;STRONG&gt;empty&lt;/STRONG&gt;. There may be no properties. It can be found at this path :&amp;nbsp;/usr/local/tomcat/shared/classes/alfresco-global.properties in the ACS container.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sh-4.4$ ls -l&lt;BR /&gt;total 4&lt;BR /&gt;drwxr-xr-x 1 root Alfresco 4096 May 20 20:22 alfresco&lt;BR /&gt;-rw-r--r-- 1 root Alfresco &lt;STRONG&gt;0&lt;/STRONG&gt; May 20 20:22 &lt;STRONG&gt;alfresco-global.properties&lt;BR /&gt;&lt;/STRONG&gt;
sh-4.4$ pwd&lt;BR /&gt;/usr/local/tomcat/shared/classes&lt;/PRE&gt;
&lt;P&gt;You can connect to the container shell and look for the file using below commands:&lt;/P&gt;
&lt;PRE&gt;##### Get container name or short container id:

&lt;STRONG&gt;- docker ps
&lt;/STRONG&gt;
### Grab the container name of id, for example container name is: "acs7_alfresco_1", then to connect the container use the below command:
&lt;STRONG&gt;- docker exec -it &amp;lt;containerName/containerId&amp;gt; /bin/bash &lt;BR /&gt;&lt;/STRONG&gt;example:
&lt;STRONG&gt;- docker exec -it acs7_alfresco_1 /bin/bash
&lt;BR /&gt;&lt;/STRONG&gt;### Cd into /usr/local/tomcat/shared/classes&lt;BR /&gt;- cd /usr/local/tomcat/shared/classes&lt;BR /&gt;- cat alfresco-global.properties&lt;/PRE&gt;
&lt;P&gt;Above commands will connect you to the docker container shell. Alternatively you can connect to shell from Docker Desktop Containers list if you are using docker desktop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please note that, any changes made to this file under container is not persisted and you will loose all your changes if container is terminated and re-launced.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;U&gt;There are better ways to add/update properties.&amp;nbsp;&lt;/U&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;A-&lt;/STRONG&gt; Use JAVA_OPTS, to add/update/override (any ootb prop). See example here:&amp;nbsp;&lt;A href="https://github.com/Alfresco/acs-deployment/blob/master/docker-compose/community-docker-compose.yml#L26" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/acs-deployment/blob/master/docker-compose/community-docker-compose.yml#L26&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;B-&lt;/STRONG&gt; &lt;A href="#Make%20use of DockerFile and docker-compose.yml" target="_self" rel="nofollow noopener noreferrer"&gt;Make use of DockerFile and docker-compose.yml in combination to build custom acs image with your custom configs including alfresco-global.properties&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follow these steps:&lt;/P&gt;
&lt;P&gt;1- Create a folder named build-config in same folder where you have kept your docker-compose.yml file&lt;BR /&gt;2- Create a folder named, 'alfresco' within build-config folder&lt;BR /&gt;3- Create a folder named extensions in 'alfresco' folder.&lt;BR /&gt;4- Copy your repo layer custom or third party amps in the build-config/alfresco/extensions folder&lt;BR /&gt;5- Create a file named 'DockerFile' under 'build-config/alfresco' which will be used for building alfresco image&lt;BR /&gt;6- Copy following instructions in the DockerFile (build-config/alfresco), &lt;STRONG&gt;e.g.:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;       FROM alfresco/alfresco-content-repository-community:7.1.0-M1
	
	ARG TOMCAT_DIR=/usr/local/tomcat

	#Change to root
	USER root

	# Copy extensions jar module if there are any
	COPY Dockerfile extensions/*.jar $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib/

	# Copy and apply amp extensions
	COPY Dockerfile extensions/*.amp $TOMCAT_DIR/amps/
	RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
				  $TOMCAT_DIR/amps $TOMCAT_DIR/webapps/alfresco -directory -nobackup -force

	#Change back to alfresco
	USER alfresco

	#Copy and override the alfresco-global.properties which comes with custom image. Which is typically empty.
	#It could be useful in cases when you already built a custom image but launch an container with some additional config in global properties.
	COPY alfresco-global.properties $TOMCAT_DIR/shared/classes/alfresco-global.properties&lt;/PRE&gt;

&lt;P&gt;7- Update the docker-compose.yml for 'alfresco' service as &lt;STRONG&gt;e.g.:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;alfresco:
	build:
          dockerfile: ./Dockerfile
          context: ./build-config/alfresco
        mem_limit: 1500m
        environment:
            JAVA_TOOL_OPTIONS: "
                -Dencryption.keystore.type=JCEKS
                -Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding
                -Dencryption.keyAlgorithm=DESede
                -Dencryption.keystore.location=/usr/local/tomcat/shared/classes/alfresco/extension/keystore/keystore
                -Dmetadata-keystore.password=mp6yc0UD9e
                -Dmetadata-keystore.aliases=metadata
                -Dmetadata-keystore.metadata.password=oKIWzVdEdA
                -Dmetadata-keystore.metadata.algorithm=DESede
                "
            JAVA_OPTS: "
                -Ddb.driver=org.postgresql.Driver
                -Ddb.username=alfresco
                -Ddb.password=alfresco
                -Ddb.url=jdbc:postgresql://postgres:5432/alfresco
                -Dsolr.host=solr6
                -Dsolr.port=8983
                -Dsolr.http.connection.timeout=1000
                -Dsolr.secureComms=none
                -Dsolr.base.url=/solr
                -Dindex.subsystem.name=solr6
                -Dshare.host=127.0.0.1
                -Dshare.port=8080
                -Dalfresco.host=localhost
                -Dalfresco.port=8080
                -Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos
                -Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&amp;amp;jms.useCompression=true\"
                -Ddeployment.method=DOCKER_COMPOSE
                -DlocalTransform.core-aio.url=http://transform-core-aio:8090/
                -Dcsrf.filter.enabled=false
                -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80
                "&lt;/PRE&gt;

&lt;P&gt;8- Launch the containers again, use following command:&lt;/P&gt;
&lt;PRE&gt;docker-compose -f ./docker-compose.yml up --build&lt;/PRE&gt;
&lt;P&gt;See the example here:&amp;nbsp;&lt;A href="https://github.com/abhinavmishra14/change-acs-share-port-demo/blob/master/docker-compose.yml#L15" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/abhinavmishra14/change-acs-share-port-demo/blob/master/docker-compose.yml#L15&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 20:25:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145382#M38544</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-07-08T20:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco-global.properties location</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145383#M38545</link>
      <description>&lt;P&gt;I am really grateful that you have responded.can you elaborate this point further.where is actually repo layer custom or&amp;nbsp;third party amps&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4- Copy your repo layer custom or third party amps in the build-config/alfresco/extensions folder&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 09:27:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145383#M38545</guid>
      <dc:creator>waqar</dc:creator>
      <dc:date>2021-07-09T09:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco-global.properties location</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145384#M38546</link>
      <description>&lt;P&gt;All amp files which will be placed by you in the folder ./build-config/alfresco/extensions will be installed during custom image will be creating.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 10:08:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145384#M38546</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2021-07-09T10:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco-global.properties location</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145385#M38547</link>
      <description>&lt;P&gt;actually where are those amp files located.from where should i get these amp files.please help&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 10:47:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145385#M38547</guid>
      <dc:creator>waqar</dc:creator>
      <dc:date>2021-07-09T10:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: alfresco-global.properties location</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145386#M38548</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86332"&gt;@waqar&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;actually where are those amp files located.from where should i get these amp files.please help&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You don't need to download any amps or jar files. The steps are provided in case you have any custom modules that you have developed in the form of "amp" / "jar" Or you are gonna use any third party amps/jars .&amp;nbsp;If you wish to apply that custom module to repository layer, you would copy it in the "extensions" directory. And during build all your extensions/modules would be applied on alfresco war file under ACS container.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If you don't have anything at present, you can leave the folder empty or with a readme file containing this clarification for future reference.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to apply custom modules to share war, then you can take similar approach as outlined for alfresco war.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 12:45:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-global-properties-location/m-p/145386#M38548</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-07-09T12:45:00Z</dc:date>
    </item>
  </channel>
</rss>

