hi Team,
As my organization uses a docker container to run local AEM instance, I am NOT able to find log files or even crx/quickstart folder to play with.
I understand this question is more specific to AEM with docker, but has anyone in this forum happen to find the AEM log files for the local instance ? Otherwise, how we can debug our code while AEM running inside docker ?
I have been asked to use the below command to tail the logs, but I want to know the actual location of the AEM logs folder.
docker exec -it aem tail --lines 0 -f ./crx-quickstart/logs/error.log
Thanks !
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Of course this will completely depend on how the Docker image is set up.. but here are some pointers:
PS: I see you are looking for ./crx-quickstart inside the container, but a typical place to find AEM and the crx-quickstart folder is at /opt/aem/[author|publisher]/crx-quickstart
Views
Replies
Total Likes
Hi,
Of course this will completely depend on how the Docker image is set up.. but here are some pointers:
PS: I see you are looking for ./crx-quickstart inside the container, but a typical place to find AEM and the crx-quickstart folder is at /opt/aem/[author|publisher]/crx-quickstart
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi, I've been working on local AEM projects with Docker for some time. Here's how you can achieve tailing logs for your running local docker AEM instance.
Assuming that your system supports UNIX commands, and your local docker instances are running, here goes:
Docker documentation can be found here: https://docs.docker.com/engine/reference/commandline/exec/
I hope this helps.
Views
Replies
Total Likes
Please let me know
Views
Replies
Total Likes
Views
Replies
Total Likes
Your DockerFile should include some environment variables:
environment:
CQ_JVM_OPTS: "-server -Xmx1024m -Xdebug -agentlib:jdwp=transport=dt_socket,address=7000,server=y,suspend=n -XX:MaxPermSize=256M -Djava.awt.headless=true -Djava.io.tmpdir=/tmp -Dorg.apache.sling.commons.log.level=ERROR -Dorg.apache.sling.commons.log.file="
CQ_RUNMODE: "publish,nosamplecontent"
CQ_PORT: "4503"
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Like
Replies