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-project-in-eclipse/m-p/296208/highlight/true#M17793
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..
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.
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.
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?
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-the-current-project-and/m-p/300048/highlight/true#M20076you 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
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 -vDocker version 19.03.12, build 48a66213fe
sudo docker-compose -vdocker-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"".
Now work fine.. When I open Alfresco in my browser this appears to me.
I should open to see "share" and log in.
What I can be doing wrong?
Looking at your screenshot, looks like there is some problem during startup. Check the logs and see if anything failed.
Alfresco can be accessed at: localhost:8080/alfresco
Share can be accessed at: localhost:8180/share
I share this video with you
https://www.loom.com/share/5b07afe023374be182814f5f7b2183bd
There you can find the log.
I hope that you can help me.. Thank you
As mentioned earlier, share the error log. Seems ACS container did not start or terminated abruptly after startup.
Run following command and see if all the containers are running:
docker ps
It is likely a memory issue with acs.
Run this command to see allocated resources:
docker stats
Please share full startup log text here to better understand error. Actual reason for failure would be somewhere in the middle of startup log.
LOG
Hi @viperboys,
The first line in the log "AbstractTracker Tracking failed for ModelTracker" suggests there might be a problem with Solr index & the repository. Try to perform a solr reindex.
If that doesn't fix the issue, make sure you have the right client certificates in SOLR. Take a look at https://github.com/Alfresco/alfresco-ssl-generator.
HTH
Ey @EddieMay and @abhinavmishra14
Now work finee, I followed these steps and they worked perfectly.
https://docs.alfresco.com/6.0/tasks/deploy-docker-compose.html
For some reason the other one that I download through MAVEN doesn't work for me ..
The bad thing is that this that I download says that it expires in 2 days hahaha