Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.99 KB

NOTES.md

File metadata and controls

38 lines (30 loc) · 1.99 KB

Adding the Feature to a Project

Pre-requisites

  • Visual Studio Code
  • Docker
  • The AEM SDK

Step 1: The SDK Archive

  • Download the AEM SDK form Adobe's Software Distribuition Site.
  • Place the ZIP archive in your project folder (i.e. .devcontainer/aem-sdk-2024.4.15977.20240418T174835Z-240400.zip)

Step 2: The Devcontainer Settings

  • Add the following feature to the .devcontainer/devcontainer.json file
"features": {
    "ghcr.io/juan-ayala/devcontainer-features/aem-sdk:1": {
        "sdksDirectory": "${containerWorkspaceFolder}/.devcontainer"
    }
}

Step 3: Visual Studio Code

  • Install the Dev Containers extension. And open the project folder.
  • VSCode will detect .devcontainer/devcontainer.json. And prompt you to reopen the project in a devcontainer.

Run AEM Services

In VSCode, open the terminal window. This is a terminal inside the docker container. You can run any command as needed, including Maven and Node.

There will be a script named start-aem. Use this to start the author, publish or dispatcher.

  • Start author: start-aem author
  • Start publish: start-aem publish
  • Start dispatcher: start-aem dispatcher

The feature also sets up volume mounts for the author and publish services. This is where the services will persist the repository. So that if the container gets deleted and/or rebuilt, the repository will persist.

References