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?
Correct path is
<ALF_HOME>/tomcat/shared/classes/alfresco-global.properties
I cannot find the alfresco folder though, perhaps because it has been installed via a docker container?
Yes due to docker there will not be an alfresco folder. You have to find it inside the container only.
That is where I find an issue, as you see in my original post, there are multiple global property locations, so for instance looking at:
[root@localhost classes]# vi /var/lib/docker/overlay2/868f002e6c845435de331c70b9db6a3988d8a3d34b207bf434bc53fdb532ae5a/merged/usr/local/tomcat/shared/classes/alfresco-global.properties
This file does not contain any configuration whatsoever, it is just blank
The proper way to do it in docker is to extend the docker image.
Please, find the following thread.
Try the following:
1. execute 'docker ps'
It returns something like this:
Then copy CONTAINER ID of alfresco-content-services (the one in red rectangle) and execute:
2. 'docker exec -it <CONTAINER ID> bash'
That will put you in <ALF_HOME>/tomcat folder, and from there you just need to navigate to 'shared/classes', to do so execute:
3. 'cd shared/classes'
and there you will find alfresco-global.properties file.
Hope this helps
Thanks for the help, I had actually got this far and accessed the global.properties file, but it was empty which I wasn't expecting. I expected the file to contain some default properties that I could amend or add to. I added a certain setting to resolve a known problem I have had with a previous version (5.2) and it resolved the problem, just threw me with the file being empty.
I'm glad it's solved!
Hey Chris,
I am facing the same issue, where is the actual file located finally
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.