Skip to content

Commit 167f052

Browse files
committed
✨ Created a separate dockerfile for AEM 6.5 (non-LTS)
1 parent 576c727 commit 167f052

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

rest-services/test_containers/ReadMe.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ In order to create an integration test container image, using the `ff_it_test` d
88

99
After performing these steps then the integration tests should run successfully after `TestUtils.java` is modified to set
1010
`AEM_TARGET_TYPE` to be `AemTargetType.TESTCONTAINERS`. If the name of the integration test container image is
11-
different than the one in the steps above, then `AEM_IMAGE_NAME` may also need to be modified.
11+
different than the one in the steps above, then `AEM_IMAGE_NAME` may also need to be modified.
12+
13+
The `ff_it_test_65.dockerfile` is provided for creating an integration test environment for AEM 6.5 (non-LTS). This
14+
assumes that an AEM 6.5 non-LTS base container is available with FluentForms v0.0.3 installed. It is useful to test that
15+
v0.0.3 is still compatible with the latest AEM 6.5 service packs and with the client libraries running on later versions of Java.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

Comments
 (0)