Giter VIP home page Giter VIP logo

Comments (3)

asotog avatar asotog commented on June 17, 2024 1

appreciate your help @abhinavmishra14 but yeah no more error messages, will try this, thank you

from acs-community-deployment.

abhinavmishra14 avatar abhinavmishra14 commented on June 17, 2024

It could be due to permission errors. You have not shared full error log so not sure. But there is a better way to install amps when using docker-compose.yml.

Follow these steps:

1- Create a folder named build-config in same folder where you have kept your docker-compose.yml file
2- Create two folders named, alfresco and share within build-config folder
3- Create a folder named extensions in alfresco and share folders.
4- Copy your repo layer custom or third party amps in the build-config/alfresco/extensions folder
5- Copy your share layer custom or third party amps in the build-config/share/extensions folder
6- Create a file named DockerFile under build-config/alfresco which will be used for building alfresco image
7- Copy following instructions in the DockerFile (build-config/alfresco)

       FROM alfresco/alfresco-content-repository-community:6.2.1-A8

	#Change to root
	USER root

	# Copy extensions jar module if there are any
	COPY Dockerfile extensions/*.jar $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib/

	# Copy and apply amp extensions
	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

	#Change back to alfresco
	USER alfresco

8- Create a file named DockerFile under build-config/share which will be used for building share image
9- Copy following instructions in the DockerFile (build-config/share)

        FROM alfresco/alfresco-share:6.2.1

	# Copy extensions jar module if there are any
	COPY Dockerfile extensions/*.jar $TOMCAT_DIR/webapps/share/WEB-INF/lib/

	# Copy and apply amp extensions
	COPY Dockerfile add-ons/*.amp $TOMCAT_DIR/amps_share/
	RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
				  $TOMCAT_DIR/amps_share $TOMCAT_DIR/webapps/share -directory -nobackup -force

10- Update the docker-compose.yml for alfresco and share services as:

  alfresco:
	build:
          dockerfile: ./Dockerfile
          context: ./build-config/alfresco
        mem_limit: 1500m
        environment:
            JAVA_OPTS: "
                -Ddb.driver=org.postgresql.Driver
                -Ddb.username=alfresco
                -Ddb.password=alfresco
                -Ddb.url=jdbc:postgresql://postgres:5432/alfresco
                -Dsolr.host=solr6
                -Dsolr.port=8983
                -Dsolr.secureComms=none
                -Dsolr.base.url=/solr
                -Dindex.subsystem.name=solr6
                -Dshare.host=127.0.0.1
                -Dshare.port=8080
                -Dalfresco.host=localhost
                -Dalfresco.port=8080
                -Daos.baseUrlOverwrite=http://localhost:8080/alfresco/aos
                -Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
                -Ddeployment.method=DOCKER_COMPOSE
                -DlocalTransform.core-aio.url=http://transform-core-aio:8090/
                -Dalfresco-pdf-renderer.url=http://transform-core-aio:8090/
                -Djodconverter.url=http://transform-core-aio:8090/
                -Dimg.url=http://transform-core-aio:8090/
                -Dtika.url=http://transform-core-aio:8090/
                -Dtransform.misc.url=http://transform-core-aio:8090/
                -Dcsrf.filter.enabled=false
                -Xms1500m -Xmx1500m
                "
   share:
        build:
          dockerfile: ./Dockerfile
          context: ./build-config/share
        mem_limit: 1g
        environment:
            REPO_HOST: "alfresco"
            REPO_PORT: "8080"
            JAVA_OPTS: "
                -Xms500m
                -Xmx500m
                -Dalfresco.host=localhost
                -Dalfresco.port=8080
                -Dalfresco.context=alfresco
                -Dalfresco.protocol=http
                "

11- Launch the containers again, use following command:

`docker-compose -f ./docker-compose.yml up --build`

from acs-community-deployment.

gavincornwell avatar gavincornwell commented on June 17, 2024

It looks like some help has been provided to resolve this issue so closing before the repository is archived as per the recent blog post: https://hub.alfresco.com/t5/alfresco-content-services-blog/acs-community-repositories-consolidation/ba-p/302770

from acs-community-deployment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.