Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Local Dispatcher Setup || AEM 6.5

Avatar

Level 6

Hi Team,

Hope you all are safe.

Although am not a  DISPATCHER Expert but due to project requirement, We are trying to setup dispatcher locally.,

 

I followed this link https://engineering.icf.com/local-aem-dispatcher-made-easy/ and found it quite easy.

 

I followed all steps written and I see this project structure in my local as :

arvind_0-1623700590013.png

 

PROBLEM STATEMENT:

 

We have already one dispatcher module project in place and its structure is quite different from above one.This project is having real project configurations that I need to install locally and test.

Please see below:

arvind_1-1623700796557.png

 

 

 

Now, is there any way we can use above dispatcher configuration in place of the  one  that I cloned while following above link.?

 

Regards,

AP

 

 

 

 

4 Replies

Avatar

Level 2

If I understand the issue correctly, you want to take the project dispatcher configs from your codebase and use them in the Docker project you grabbed off of github?

 

It is possible to use your project disp configs but you will need to rewrite the Dockerfile so that it understands the configuration. The blog post on how to make a local disp setup easy is just putting everything into 2 files and including the dispatcher module. Which honestly is how things used to be done back before AEM 6.3. When it comes to AEM 6.5 disp configs are broken out a bit more so that you can use the same set in multiple environments and have reuse between different vhosts.

 

Instead of trying to make your configs fit into that Docker container, I would start over with a blank Linux/Apache Docker container and build off of that.

Avatar

Level 6
@bmccurdy, Thank you for your reply. Do you suggest any link which I can follow in order to have blank Docker container? Thanks in advance.

Avatar

Community Advisor

Hi,

we deployed the dispatcher changes from git repo, for local we used the aem-sdk to setup dispatcher in AEMaaCS but the dispatcher works with traditional AEM as well.

you can find more details here if this approach helps

http://aemlab.blogspot.com/2020/09/aemaacs-setup.html



Arun Patidar

Avatar

Level 6

Hi All ,

 

@arunpatidar 

@bmccurdy 

 
 

I tried to follow another article as its archetype structure is very close to our project code base.

https://blogs.perficient.com/2021/01/05/setting-up-a-local-aem-dispatcher-with-docker/

 

After I performed all steps successfully.

 

PROBLEM STATEMENT:

When I try to access local:8082, It gives "You don't have permission to access / on this server.".(I changed port from 80 to 8082 in docker-compose.yml).

 

arvind_0-1623747794918.png

 

Below are docker-compose.yml and Dockerfile for the reference.

 

arvind_1-1623748007735.png

arvind_2-1623748067189.png

 

 

 

Any help would be really appreciated. Thanks.

 

Regards,

AP