Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error to deploy on 6.1 community with docker #91

Open
aelsantex opened this issue Jan 31, 2020 · 1 comment
Open

Error to deploy on 6.1 community with docker #91

aelsantex opened this issue Jan 31, 2020 · 1 comment

Comments

@aelsantex
Copy link

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?

@jpotts
Copy link

jpotts commented Jun 29, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants