cancel
Showing results for 
Search instead for 
Did you mean: 

How to deploy amps on dockered Alfresco?

joko71
Confirmed Champ
Confirmed Champ

This is a continuation from this prototyping effort.

I've prepared amp volumes for my dockered Alfresco and Share, and test amps for both to test amp deployment.

Yes, amp packages were copied in amps and amps_share folders, but not deployed AFAIK.

Have I missed some step?

15 REPLIES 15

angelborroy
Community Manager Community Manager
Community Manager

Probably you missed this line in your Dockerfile extensions:

https://github.com/Alfresco/alfresco-docker-installer/blob/master/generators/app/templates/images/al...

Hyland Developer Evangelist

Thanks, but can it be done via docker-compose.yml file? I've used only docker-compose so far, I haven't edited any Dockerfile, and I don't know how to do it if images are downloaded and handled by docker-compose.

It looks like default Docker Image deploys AMPS located in ${TOMCAT_DIR}/amps

https://github.com/Alfresco/acs-community-packaging/blob/master/docker-alfresco/Dockerfile#L22

So you can attach a Docker Volume to this path and that should work.

Hyland Developer Evangelist

I configured volumes and AMPs are in amps and amps_share folders in containers, but not deployed.

I tried to do it outside, with script, but I got boggled in syntax quagmire:

#! /bin/sh

echo "Alfresco..."

#docker exec -it docker-alfresco_alfresco_1 'java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt-6.0.jar install /usr/local/tomcat/amps -directory -nobackup -force'
docker exec docker-alfresco_alfresco_1 bash -c "java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt-6.0.jar \"install /usr/local/tomcat/amps -directory -nobackup -force\""

echo "Share..."

#docker exec -it docker-alfresco_share_1 'java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt-6.0.jar install /usr/local/tomcat/amps_share -directory -nobackup -force'
docker exec docker-alfresco_share_1 bash -c "java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt-6.0.jar \"install /usr/local/tomcat/amps_share -directory -nobackup -force\""

Interesting that about deploying in Dockerfile, maybe deploys were tried but unsuccessful.