i am facing difficulties in finding the alfresco-global.properties file . i am using docker to run alfreso community editon 7.0
how can i access this file and update this file.can any one help me out
The alfresco-global.properties in ACS container is usually empty. There may be no properties. It can be found at this path : /usr/local/tomcat/shared/classes/alfresco-global.properties in the ACS container.
sh-4.4$ ls -l total 4 drwxr-xr-x 1 root Alfresco 4096 May 20 20:22 alfresco -rw-r--r-- 1 root Alfresco 0 May 20 20:22 alfresco-global.properties
sh-4.4$ pwd /usr/local/tomcat/shared/classes
You can connect to the container shell and look for the file using below commands:
##### Get container name or short container id:
- docker ps
### Grab the container name of id, for example container name is: "acs7_alfresco_1", then to connect the container use the below command:
- docker exec -it <containerName/containerId> /bin/bash example:
- docker exec -it acs7_alfresco_1 /bin/bash
### Cd into /usr/local/tomcat/shared/classes - cd /usr/local/tomcat/shared/classes - cat alfresco-global.properties
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.
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.
1- Create a folder named build-config in same folder where you have kept your docker-compose.yml file 2- Create a folder named, 'alfresco' within build-config folder 3- Create a folder named extensions in 'alfresco' folder. 4- Copy your repo layer custom or third party amps in the build-config/alfresco/extensions folder 5- Create a file named 'DockerFile' under 'build-config/alfresco' which will be used for building alfresco image 6- Copy following instructions in the DockerFile (build-config/alfresco), e.g.:
#Change to 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
#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
7- Update the docker-compose.yml for 'alfresco' service as e.g.:
actually where are those amp files located.from where should i get these amp files.please help
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 . 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.
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.
If you want to apply custom modules to share war, then you can take similar approach as outlined for alfresco war.