cancel
Showing results for 
Search instead for 
Did you mean: 

I'm having issue setting up my development environment for Alfresco 6.2

viperboys
Star Contributor
Star Contributor

Hi guys..

I am new working with Alfresco.. At first I had issue with the installation of the Alfresco 5.2 development environment. This was overcome thanks to the help of some boys.

Now I am working with Alfresco 6.2 and I need to install my development environment. This version is based on docker and docker compose. I have install, docker, docker-compose, Java 11.0.7, Apache Maven 3.6.3, Eclipse. I am use Ubuntu 20.04.

I followed these steps

https://hub.alfresco.com/t5/alfresco-content-services-forum/problem-when-creating-an-all-in-one-proj...

I stayed in step 7. So far so good.

Then I ran this command ./run.sh build_start

I'm in that step.

My question is. Should I follow the same steps as I did when I imported it with Alfresco 5.2? I am reading this but it says I have to install mysql or postgres. https://hub.alfresco.com/t5/alfresco-content-services-hub/alfresco-sdk-4-0/ba-p/289257 

Do you have anything that can help me?

Thank you.. 

3 ACCEPTED ANSWERS

Either should work, The reason why you got expired message because you are using enterprise verison "https://docs.alfresco.com/6.0/tasks/deploy-docker-compose.html", You have to apply the license if you use enterprise version. You might have installed enterprise version earlier.

Else use this one instead: https://github.com/Alfresco/acs-community-deployment

git clone https://github.com/Alfresco/acs-community-deployment.git
cd acs-community-deployment

use master branch. other steps should be same.  

Base project generated via SDK4.1 should work as well. That's the right way to develop your custom extensions and test.

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View answer in original post

Hi @viperboys 

There is also an equivalent page in the Community Edition documentation that you can use:  https://docs.alfresco.com/community/tasks/deploy-docker-compose.html. This page shows you how to deploy the last release of Alfresco Community Edition (using a tagged release branch). I'd welcome any feedback on this content.

Technical Writer in Alfresco User Assistance Team
Problem solved? Click Accept as Solution!

View answer in original post

Hi @abhinavmishra14 

Now work fine.. I am happy! 

Only one thing, I understand Alfresco 6.x is based on Docker and containers. How did I configure Eclipse with the Alfresco code to make my own customizations?

View answer in original post

16 REPLIES 16

abhinavmishra14
World-Class Innovator
World-Class Innovator

You don't need to install anything manually except docker for desktop, java and maven. Java, maven and docker are basic requirements to start with SDK4.1 and ACS 6.x

In your base project which you generated, you can find a sub-project/sub-directory named as "docker". You will find a docker-compose.yml file, it has everything basic configuration to startup acs, share, search and db etc.

run.sh/run.bat build_start should launch all the containers. 

This post may be helpful as well: 

https://hub.alfresco.com/t5/alfresco-content-services-forum/no-plugin-found-for-prefix-alfresco-in-t...

you can also refer this post

above post talks about setting up everything step by step, it has steps to use VSCode instead of Eclipse but you can always use eclipse. First post link to setup eclipse 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Hi @abhinavmishra14 

Thank you forr you helping.. 

I have this issue when I run this command "Docker-compose up" with the file docker-compose.yml

ERROR: Invalid interpolation format for "ports" option in service "project.sdk4-share": "${share.port}:8080"

sudo docker -v
Docker version 19.03.12, build 48a66213fe

sudo docker-compose -v
docker-compose version 1.26.2, build eefe0d31

I try to google but can't find anything like it.

Thank you very much

I have not see this error before, are you manually using  "Docker-compose up" with the file docker-compose.yml ? If yes, then i would say not to do that. 

you should always use run.bat/run.sh file to launch containers for sdk4.1 generated projects.

There are certain steps that run.bat/run.sh script's build_start function does, which includes building (maven clean and package steps) the project and starting.

After you run run.bat/run.sh build_start, notice a target directory under your project. You would see the docker-compose.yml file (under target\classes\docker folder) with all updated values including the ports. Port values are configured in project's parent pom.xml file.

After build ports will change from ""${share.port}:8080"" to ""8180:8080"". 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Hi @abhinavmishra14 

Now work fine.. When I open Alfresco in my browser this appears to me.

image

I should open to see "share" and log in.

What I can be doing wrong?