AEM SDK and JDK11
Building on the previous work Docker Containers Everywhere, AEM and Docker ππ and Docker AEM Bundle its time to bring AEM SDK and JDK11 into life!
If you take a look docker hub and docker-aem branches you will find a couple of new additions that you will find helpful.
JDK11 version of AEM 6.5 and AEM SDK version is now ready for use!
Running AEM JDK 11 in Docker
To start author AEM 6.5 with SP10 on JDK11 run the following:
docker run --name author655 -e "TZ=Australia/Sydney" -e "AEM_RUNMODE=-Dsling.run.modes=author,crx3,crx3tar,forms,localdev" -e "AEM_JVM_OPTS=-server -Xms248m -Xmx1524m -XX:MaxDirectMemorySize=256M -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true -Dorg.apache.felix.http.host=0.0.0.0 -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=58242,suspend=n -XX:+UseParallelGC --add-opens=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -Dnashorn.args=--no-deprecation-warning" -p4502:8080 -p30303:58242 -d aemdesign/aem:6.5.10.0-jdk11
To start author AEM SDK version 2021.10.5958 run the following:
docker run --name authorsdk2021105958 -e "TZ=Australia/Sydney" -e "AEM_RUNMODE=-Dsling.run.modes=author,crx3,crx3tar,forms,localdev" -e "AEM_JVM_OPTS=-server -Xms248m -Xmx1524m -XX:MaxDirectMemorySize=256M -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true -Dorg.apache.felix.http.host=0.0.0.0 -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=58242,suspend=n -XX:+UseParallelGC --add-opens=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -Dnashorn.args=--no-deprecation-warning" -p4502:8080 -p30303:58242 -d aemdesign/aem:sdk-2021.10.5958
To make all this possible following Docker image chain has been updated:
- aemdesign/aem:jdk11 - AEM Quickstart content
- aemdesign/aem-base:jdk11 - AEM linux dependencies
- aemdesign/java-ffmpeg:jdk11 - provides ImageMagic and FFMpeg libraries
- aemdesign/oracle-jdk:jdk11 - provides a an oracle jdk
- aemdesign/centos-tini:centos8 - provides a base for all java apps
- aemdesign/oracle-jdk:jdk11 - provides a an oracle jdk
- aemdesign/java-ffmpeg:jdk11 - provides ImageMagic and FFMpeg libraries
- aemdesign/aem-base:jdk11 - AEM linux dependencies
In addition to these pipelines have been updated to allow Docker Image squash experimental option to ensure all images have the smallest amount of layers.
Additionally, centos build pack has been updated to JDK 11 and Centos 8 with all the swiss army knife tools one expects.
Thank you
Please checkout the docker hub aemdesign/aem for further details.
If you would like to contribute or fork the code, you can get it on GitHub https://github.com/aem-design.
Donβt forget to tell your friends.
Leave a Comment