Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Local Dispatcher Setup || AEM 6.5

arvind
Level 4
Level 4

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

 

 

 

 

1 Reply
bmccurdy
Level 1
Level 1

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.

arvind
Level 4
Level 4
@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.
Arun_Patidar
Community Advisor
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

arvind
Level 4
Level 4

Hi All ,

 

@Arun_Patidar 

@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