- Visual Studio Code
- Docker
- The AEM SDK
- 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
)
- Add the following feature to the
.devcontainer/devcontainer.json
file
"features": {
"ghcr.io/juan-ayala/devcontainer-features/aem-sdk:1": {
"sdksDirectory": "${containerWorkspaceFolder}/.devcontainer"
}
}
- 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.
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.