|
| 1 | +FROM aem:aem65sp24 AS ff_it_test |
| 2 | + |
| 3 | +ENV container="aem-lts-quickstart,aem-author,ubuntu,java21" |
| 4 | + |
| 5 | +# Switch to AEM user |
| 6 | +USER aem_user |
| 7 | + |
| 8 | +RUN mkdir -p /opt/adobe/ff_it_files |
| 9 | + |
| 10 | +COPY ff_it_files/* /opt/adobe/ff_it_files |
| 11 | + |
| 12 | +RUN /bin/bash -c "/opt/adobe/AEM*/runStart ; \ |
| 13 | +jbang --java=25 /opt/adobe/aem_cntrl-0.0.2-SNAPSHOT.jar wflog --startup ; \ |
| 14 | +jbang --java=25 /opt/adobe/ff_it_files/deploy_it_assets.jar ; \ |
| 15 | +/opt/adobe/AEM*/runStop ; \ |
| 16 | +jbang --java=25 /opt/adobe/aem_cntrl-0.0.2-SNAPSHOT.jar wflog --shutdown" |
| 17 | + |
| 18 | +#NOTE: make sure to copy admin.password.file and license.properties files to the /opt/aem-config folder. |
| 19 | +# VOLUME ["/opt/aem-config/"] |
| 20 | +#VOLUME ["/opt/adobe/???/crx-quickstart/logs"] |
| 21 | +EXPOSE 4502 |
| 22 | + |
| 23 | +#Command below is executed at runtime, instead of build |
| 24 | +# CMD /bin/bash |
| 25 | +# To set the admin password to something other than default, add -Dadmin.password.file=adminpassword.properties and to the java command line below |
| 26 | +# and place admin.password = <password> in a file called adminpassword.properties within the aem directory. |
| 27 | +# see https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/security-configure-admin-password.html?lang=en |
| 28 | +# CMD /bin/bash -c "cp -v /opt/aem-config/* /opt/aem; cd /opt/aem/ ; java -Xms1024m -Xmx2048m --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 -jar ./AEM_6.5_Quickstart.jar -v -nointeractive" |
| 29 | +CMD /bin/bash -c "cd /opt/adobe/AEM* ; eval '$(jbang jdk java-env 11)' ; \ |
| 30 | +java -Xms1024m -Xmx2048m \ |
| 31 | +--add-opens=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED \ |
| 32 | +--add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED \ |
| 33 | +--add-opens=java.naming/javax.naming.spi=ALL-UNNAMED \ |
| 34 | +--add-opens=java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED \ |
| 35 | +--add-opens=java.base/java.lang=ALL-UNNAMED \ |
| 36 | +--add-opens=java.base/jdk.internal.loader=ALL-UNNAMED \ |
| 37 | +--add-opens=java.base/java.net=ALL-UNNAMED \ |
| 38 | +-Dnashorn.args=--no-deprecation-warning \ |
| 39 | +-Djava.awt.headless=true \ |
| 40 | +-Dsling.run.modes=author,crx3,crx3tar \ |
| 41 | +-Djava.locale.providers=CLDR,JRE,SPI \ |
| 42 | +-jar crx-quickstart/app/cq-quickstart-6.5.0-standalone-quickstart.jar \ |
| 43 | +start \ |
| 44 | +-c crx-quickstart \ |
| 45 | +-i launchpad \ |
| 46 | +-p 4502 \ |
| 47 | +-Dsling.properties=conf/sling.properties" |
| 48 | + |
0 commit comments