forked from aem-design/docker-aem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (36 loc) · 1.72 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM aemdesign/aem-base:latest
MAINTAINER devops <devops@aem.design>
LABEL os="centos 7" \
java="oracle 8" \
container.description="aem instance, will run as author unless specified otherwise" \
version="latest" \
imagename="aem" \
test.command=" java -version 2>&1 | grep 'java version' | sed -e 's/.*java version "\(.*\)".*/\1/'" \
test.command.verify="1.8"
ARG AEM_VERSION="6.5.0"
ARG AEM_JVM_OPTS="-server -Xms1024m -Xmx1024m -XX:MaxDirectMemorySize=256M -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true -Dorg.apache.felix.http.host=0.0.0.0"
ARG AEM_START_OPTS="start -c /aem/crx-quickstart -i launchpad -p 8080 -a 0.0.0.0 -Dsling.properties=conf/sling.properties"
ARG AEM_JARFILE="/aem/crx-quickstart/app/cq-quickstart-${AEM_VERSION}-standalone-quickstart.jar"
ARG AEM_RUNMODE="-Dsling.run.modes=author,crx3,crx3tar,nosamplecontent"
ARG PACKAGE_PATH="./crx-quickstart/install"
ENV AEM_JVM_OPTS="${AEM_JVM_OPTS}" \
AEM_START_OPTS="${AEM_START_OPTS}"\
AEM_JARFILE="${AEM_JARFILE}" \
AEM_RUNMODE="${AEM_RUNMODE}"
WORKDIR /aem
COPY scripts/*.sh /aem/
COPY jar/aem-quickstart.jar ./aem-quickstart.jar
#unpack the jar
RUN java -jar aem-quickstart.jar -unpack && \
rm aem-quickstart.jar
COPY dist/install.first/*.config ./crx-quickstart/install/
COPY dist/install.first/logs/*.config ./crx-quickstart/install/
COPY dist/install.first/conf/sling.properties ./crx-quickstart/conf/sling.properties
COPY packages/ $PACKAGE_PATH/
#expose port
EXPOSE 8080 58242 57345 57346
VOLUME ["/aem/crx-quickstart/repository", "/aem/crx-quickstart/logs", "/aem/backup"]
#ensure script has exec permissions
RUN chmod +x /aem/*.sh
#make java pid 1
ENTRYPOINT ["/bin/tini", "--", "/aem/run-tini.sh"]