Which alfresco-global.pjrperties is correct?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Which alfresco-global.pjrperties is correct?

Hi there,

 

after a while stepping from 5.2 to 6.x using the Docker environment (which I don't like....) I try to set up and configure Alfresco.

I found

/var/lib/docker/overlay2/18b123f73197d12eda2014449bc44cf88155cff5396ae2c024dbde43924a701d/diff/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
/var/lib/docker/overlay2/1d0ebfb840862ddf4fc50e209a420d4a6cee87c2d56d666e8f80ca2411dbf2a2/diff/usr/local/tomcat/shared/classes/alfresco-global.properties
/var/lib/docker/overlay2/1d0ebfb840862ddf4fc50e209a420d4a6cee87c2d56d666e8f80ca2411dbf2a2/diff/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
/var/lib/docker/overlay2/56825b1ea08ce500b99b72168886ef14859f5eaca079f2fb4e3c43452e4b47da/diff/usr/local/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/alfresco-share-services/alfresco-global.properties
/var/lib/docker/overlay2/950cb51999fb00bc12b8358eaa56528ea077c066754998a142bada182dc22237/diff/usr/local/tomcat/shared/classes/alfresco-global.properties
/var/lib/docker/overlay2/950cb51999fb00bc12b8358eaa56528ea077c066754998a142bada182dc22237/diff/usr/local/tomcat/shared/classes/alfresco-global.properties.sample

 

which one is the right one?

I'm confused..... Smiley Sad

Thanks for any help.

 

Sascha

2 Replies
Highlighted
Moderator
Moderator

Re: Which alfresco-global.pjrperties is correct?

alfresco-global.properties can still be found under $TOMCAT_HOME/shared/classes/alfresco-global.properties (i.e. /usr/local/tomcat/shared/classes/alfresco-global.properties) in alfresco repository container. 

When all your containers are up, you can run following command to see the launced container names/ids.

docker ps

You can connect to repository container and navigate to '/usr/local/tomcat/shared/classes' directory to find the alfresco-global.properties file. 

For example container name is: 'acs_community_alfresco_1' then you can use following command to connect and find the file.

docker exec -i -t acs_community_alfresco_1 /bin/bash

However, this file (/usr/local/tomcat/shared/classes/alfresco-global.properties) may be empty and may not have any properties in it. 

You can either have your 'alfresco-global.properties' and copy it to repository container while launching the containers with help of DockerFile or use JAVA_OPTS within 'docker-compose.yml' file to add/update any properties which you would like.

This project has examples of DockerFile and JAVA_OPTS based examples, if you want to take a reference:

https://github.com/abhinavmishra14/change-acs-share-port-demo

With docker based deployment, it has own benefits comapred to traditional deployemts prior to 6.x. I would suggest you to go through these docs, everything looks unfamilier until you get used to it. 

https://hub.alfresco.com/t5/alfresco-content-services-blog/deploying-and-running-alfresco-content-se...

To know more on docker-compose CLIhttps://docs.docker.com/compose/reference/overview/
 
To know more on DockerFile, refer:  https://docs.docker.com/engine/reference/builder/
 
To know more on docker-compose.yml, refer: https://docs.docker.com/compose/
 
 

 

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)
Highlighted
Member II

Re: Which alfresco-global.pjrperties is correct?

Thanks for the splendid answer.

I will check it out and I'm shure it'll work... Smiley Wink

Regarding Docker: I would prefer to have a choice. I'm working on VM's and cannot see the benefit of Docker right now.

On hardware-based servers, the benefit is clear. But the administration overhead is annoying.

I have to learn a completely new environment, just to use something I'm using for a long time now. If it wasn't for REST support, I would stay with 5.2...

Thankful regards,

Sascha