You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to deploy the amp files on alfresco 6.1 installed as docker containers.
I copy the amp file of repo with this command: docker cp /root/.m2/repository/de/fmaul/javascript-console-repo/0.7-SNAPSHOT/javascript-console-repo-0.7-SNAPSHOT.amp 8d633437996f:/usr/local/tomcat/amps
But when i try to install the amp on alfresco i receive this error: root@xalf6:~# docker exec -it composer_yml_alfresco_1 /bin/bash [alfresco@72d54aca56bb amps]$ java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt-6.0.jar install /usr/local/tomcat/amps /usr/local/tomcat/webapps/alfresco -directory -nobackup -force
00310000 An IO error was encountered during deployment of the AMP into the WAR
How can i do?
The text was updated successfully, but these errors were encountered:
This is an old issue, but just in case it helps the OP or someone else...
Docker images are immutable. Instead of trying to run the MMT after the container is up-and-running, you should install the JavaScript Console AMPs as a step when you build your image.
If you are using the SDK, you can just add the JS Console AMP repo and share AMPs as dependencies in the pom.xml files for your repo and share docker modules in your SDK project.
Even if you are not using the SDK, you might take a look at how it builds its images. Its Dockerfile contains the following:
# Copy Dockerfile to avoid an error if no AMPs exist
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
You should do that same thing in your own project to install the AMP into your image.
Hello
I try to deploy the amp files on alfresco 6.1 installed as docker containers.
I copy the amp file of repo with this command:
docker cp /root/.m2/repository/de/fmaul/javascript-console-repo/0.7-SNAPSHOT/javascript-console-repo-0.7-SNAPSHOT.amp 8d633437996f:/usr/local/tomcat/amps
But when i try to install the amp on alfresco i receive this error:
root@xalf6:~# docker exec -it composer_yml_alfresco_1 /bin/bash [alfresco@72d54aca56bb amps]$ java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt-6.0.jar install /usr/local/tomcat/amps /usr/local/tomcat/webapps/alfresco -directory -nobackup -force
00310000 An IO error was encountered during deployment of the AMP into the WAR
How can i do?
The text was updated successfully, but these errors were encountered: