Finding the correct global properties file to update settings

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2020 06:11 AM
Hi, I am running Alfresco community 6 in a docker container on Centos 7, I am trying to locate the global properties file to update it, of I search for the file I get multiple entries:
[root@localhost classes]# locate -br 'alfresco-global.properties'
/var/lib/docker/overlay2/868f002e6c845435de331c70b9db6a3988d8a3d34b207bf434bc53fdb532ae5a/merged/usr/local/tomcat/shared/classes/alfresco-global.properties
/var/lib/docker/overlay2/868f002e6c845435de331c70b9db6a3988d8a3d34b207bf434bc53fdb532ae5a/merged/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
/var/lib/docker/overlay2/8bad2bdb812c5cc9da89ee82fea3c7c02fed73f8c479935f2e2dbb34fb064281/diff/usr/local/tomcat/shared/classes/alfresco-global.properties
/var/lib/docker/overlay2/a676c366f5218131b1f12a657da703738568c48c10b40844eaf70e21ba25e984/diff/usr/local/tomcat/shared/classes/alfresco-global.properties
/var/lib/docker/overlay2/a676c366f5218131b1f12a657da703738568c48c10b40844eaf70e21ba25e984/diff/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
/var/lib/docker/overlay2/bf6bbdb7a20ab4cf1c53bcdd2ed70624f5a3ab13d57ca1d69d503e44cb581610/diff/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
/var/lib/docker/overlay2/c3dcb1a9b640ace9ed53cac0a7e1b9f1aa0662a2e90b988fb7b3a9b27273d169/diff/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
Can anyone point me to the location of the properties file I want to be editing/updating?
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2020 05:57 AM
Hi @arjunm1989
If you look at @mire323 answer, you can see that if you run the docker cmds they mentioned (starting with, "execute 'docker ps' "), this will give you the location of the file.
HTH
Problem solved? Click Accept as Solution!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2020 10:23 AM
Yes but that is empty.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2020 10:42 AM
This was the same issue I found, the file was entirely empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2020 10:47 AM
it will be empty and its expected by default. It would be empty unless you copy or update the global properties file during image build. All properties are set via java arguments like this, if you check your docker-compose file:
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.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&jms.useCompression=true\" -Ddeployment.method=DOCKER_COMPOSE -DlocalTransform.core-aio.url=http://transform-core-aio:8090/ -Dalfresco-pdf-renderer.url=http://transform-core-aio:8090/ -Djodconverter.url=http://transform-core-aio:8090/ -Dimg.url=http://transform-core-aio:8090/ -Dtika.url=http://transform-core-aio:8090/ -Dtransform.misc.url=http://transform-core-aio:8090/ -Dcsrf.filter.enabled=false -Xms1500m -Xmx1500m "
You can either put your properties as stated above, or create a global properties file and copy that to container image via DockerFile.
You need to update docker-compose.yml file for acs service to build from DockerFile:
alfresco: build: dockerfile: ./Dockerfile context: ./configs-to-override/alfresco args: ACS_TAG: ${ACS_TAG} mem_limit: 1500m
.....
.....
DockerFile will have following instructions:
ARG ACS_TAG FROM alfresco/alfresco-content-repository-community:${ACS_TAG} #Copy and override the alfresco-global.properties which comes with custom image. #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
You can find an example here for DockerFile: https://github.com/abhinavmishra14/change-acs-share-port-demo/blob/master/configs-to-override/alfres...
Service example: https://github.com/abhinavmishra14/change-acs-share-port-demo/blob/master/docker-compose.yml#L15
(ACSCE, AWS SAA, Azure Admin)
