AEM Docker
This project it’s aimed to create an Adobe AEM image optimized even though that AEM it’s not ready and prepared by Adobe to be dockerized.
This project is a set of Dockerfiles with some scripts that will be an optimized Adobe AEM image at the end. It was create to not have to exec into the container and some configurations, it’s all done through dockerfile and scripts.
Since I cannot share these files, you’ll need the cq-quickstart-*.jar, your license.properties and the service package copied in files directory.
Also you’ll need Docker with experimental features enabled.
Builds a base image with CentOS and Oracle JDK 8. Note that CentOS and Oracle JDK were picked according the Adobe Technical Requirements
docker build . -f Dockerfile-centos-with-oraclejdk -t centos-with-oraclejdk --squash
Builds the AEM image.
Build arguments:
And repeat
author:
docker build . -f Dockerfile-aem -t author:6.4.0 --squash
publish:
docker build . -f Dockerfile-aem -t publish:6.4.0 --squash \
--build-arg AEM_RUNMODE=publish \
--build-arg HTTP_PORT=4503 \
--build-arg DEBUG_HTTP_PORT=5503
Updates AEM image with Service Pack.
Build arguments:
author:
docker build . -f Dockerfile-service-pack -t author:6.4.3 --squash
publish:
docker build . -f Dockerfile-service-pack -t publish:6.4.3 --squash \
--build-arg AEM_RUNMODE=publish \
--build-arg HTTP_PORT=4503
Optimize AEM image removing all packages from CRX Package Manager and running garbage collectors. This step is important if you had installed any service pack, because these kind of packages installs a lot of others packages, and after they’re installed you don’t need them anymore.
Build arguments:
author:
docker build . -f Dockerfile-optimize -t author:6.4.3-slim --squash
publish:
docker build . -f Dockerfile-optimize -t publish:6.4.3-slim --squash \
--build-arg AEM_RUNMODE=publish \
--build-arg HTTP_PORT=4503 \
--build-arg DEBUG_HTTP_PORT=5503
This project is licensed under the MIT License - see the LICENSE file for details