cancel
Showing results for 
Search instead for 
Did you mean: 

How to install module to dockerized Alfresco installation?

googlom
Champ in-the-making
Champ in-the-making

I'm new to docker. Please, help to figure out how to install a module (OnlyOffice integration) to dockerized installation of Alfresco.
I've installed Alfresco using docker-compose.yml (attached):


Now I have 4 containers:
a62fa579f38c   alfresco/alfresco-share:6.0.b
7e2afbeb545b   alfresco/alfresco-content-repository-community:6.0.7-ga 
209301bd7e96   postgres:10.1 
de7b6d9c460b   alfresco/alfresco-search-services:1.1.1 

I've tried
1) to copy onlyoffice-alfresco-share-1.0.5.amp file into a62fa579f38c containers /usr/local/tomcat/amps_share dir and restart container

2) set environment in docker-compose.yml:

environment:
- AMP_DIR_SHARE=/usr/local/tomcat/amps_share
- REPO_HOST=alfresco
- REPO_PORT=8080

3) According to the guide, didn't find any apply_amps.sh inside containers

 

1 ACCEPTED ANSWER

saso5
Champ on-the-rise
Champ on-the-rise

Than you for all of your quick replies and the fix!

View answer in original post

12 REPLIES 12

The post is public now, did some editing and forgot to publish again.

saso5
Champ on-the-rise
Champ on-the-rise

Than you for all of your quick replies and the fix!

davidciamberlan
Elite Collaborator
Elite Collaborator

A simplified approach (compared to the one suggested by Angel) could be:

Create a simple Dockerfile like this:


FROM alfresco/alfresco-content-repository-community:6.0.7-ga

COPY amps/<your-amp>.amp \
    /usr/local/tomcat/amps/<your-amp>.amp

RUN java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt*.jar install \
              /usr/local/tomcat/amps/<your-amp>.amp \
              /usr/local/tomcat/webapps/alfresco -nobackup -force


In your docker-compose, you can now rebuild the alfresco docker image:

[...]
alfresco:
    build: <your/Dockerfile/path>
    environment:
        JAVA_OPTS : "
            -Ddb.driver=org.postgresql.Driver
            -Ddb.username=alfresco
            -Ddb.password=alfresco
            -Ddb.url=jdbc:postgresql://postgres:5432/alfresco
            ...
[...]