How to install module to dockerized Alfresco installation?

cancel
Showing results for 
Search instead for 
Did you mean: 
googlom
Member II

How to install module to dockerized Alfresco installation?

Jump to solution

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 Solution

Accepted Solutions
saso5
Active Member

Re: How to install module to dockerized Alfresco installation?

Jump to solution

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

View solution in original post

12 Replies
angelborroy
Alfresco Employee

Re: How to install module to dockerized Alfresco installation?

Jump to solution

Alfresco does not support module deployment yet for default images.

I'm using this approach: alfresco-docker-template/templates/201806-GA at master · keensoft/alfresco-docker-template · GitHub 

Hyland Developer Evangelist
afaust
Master

Re: How to install module to dockerized Alfresco installation?

Jump to solution

Alfresco considers it the "expected way" to build your own images, see Building and Deploying custom ACS Images

davidciamberlan
Alfresco Employee

Re: How to install module to dockerized Alfresco installation?

Jump to solution

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
            ...
[...]
googlom
Member II

Re: How to install module to dockerized Alfresco installation?

Jump to solution

I've installed Alfresco using this compose.
Is there a way to disable https and use only http?

angelborroy
Alfresco Employee

Re: How to install module to dockerized Alfresco installation?

Jump to solution

I've provided an alternative HTTP configuration at:

https://github.com/keensoft/alfresco-docker-template/tree/master/templates/201806-GA

You can use docker-compose -f docker-compose-http.yml or just rename this file to docker-compose.yml.

Hyland Developer Evangelist
saso5
Active Member

Re: How to install module to dockerized Alfresco installation?

Jump to solution

I get an "Unauthorized" exception when trying to open the link. Is the content not freely available? 

angelborroy
Alfresco Employee

Re: How to install module to dockerized Alfresco installation?

Jump to solution

The content is freely available. Probably the message is due to your web proxy.

Hyland Developer Evangelist
saso5
Active Member

Re: How to install module to dockerized Alfresco installation?

Jump to solution

It's yours "Unauthorized" page. Other posts are accessible to me, only this one seams to be hidden.

angelborroy
Alfresco Employee

Re: How to install module to dockerized Alfresco installation?

Jump to solution

Sorry, yes it looks like this post has been moved to private zone. Probably Ole Hejlskov‌ (the new Developer Evangelist) or Kristen Gastaldo‌ (Community Manager) can assist you in this issue.

Hyland Developer Evangelist