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.
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.
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.
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,
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.
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.