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

I've exported these folders to my volumes folder which are key for web script deployment:

docker cp docker-alfresco_alfresco_1:/usr/local/tomcat/shared/classes/alfresco/extension ./volumes/webscript_context
docker cp docker-alfresco_alfresco_1:/usr/local/tomcat/webapps/alfresco/WEB-INF/classes ./volumes/webscript_classes
docker cp docker-alfresco_alfresco_1:/usr/local/tomcat/webapps/alfresco/WEB-INF/lib ./volumes/webscript_libs

I'll try to deploy Java code, JARs and XML in their respective folders and see how it goes. Wish me luck!

Again: I don't think this is the right way of doing that.

You could do easilier by following some of the recommendations we gave you before.

Hyland Developer Evangelist

I appreciate what you're saying, but rebuilding image every time code is updated it seems like overkill to me. If this fails, I can always revert.

joko71
Confirmed Champ
Confirmed Champ

Update: This approach works.

I've made a test webscript and deployed it on my volumes and it works.

Only one has to be careful with Linux volume permissions, because Alfresco will complain and not work when docker-compose is started.

EddieMay
World-Class Innovator
World-Class Innovator

Hi @joko71 

Glad you've found a workable solution! If you think this would be useful to other people, would you be willing to write up your method, etc? 

Take care,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

Maybe I will, it's still early to tell if this actually works. Everything is empty, Alfresco and a server which is to communicate with it.