-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfileAmd
67 lines (53 loc) · 2.32 KB
/
DockerfileAmd
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM camunda/camunda-bpm-platform:tomcat-7.22.0
RUN rm -rf /camunda/webapps/ROOT
RUN rm -rf /camunda/webapps/camunda
RUN rm -rf /camunda/webapps/camunda-invoice
RUN rm -rf /camunda/webapps/camunda-welcome
RUN rm -rf /camunda/webapps/docs
RUN rm -rf /camunda/webapps/examples
RUN rm -rf /camunda/webapps/h2
RUN rm -rf /camunda/webapps/host-manager
RUN rm -rf /camunda/webapps/manager
COPY conf/bpm-platform-active.xml /camunda/conf/bpm-platform-active.xml
COPY conf/bpm-platform-inactive.xml /camunda/conf/bpm-platform-inactive.xml
COPY conf/server.xml /camunda/conf/server_temp.xml
COPY conf/tomcat-users.xml /camunda/conf/tomcat-users_templ.xml
COPY conf/web.xml /camunda/conf/web_templ.xml
COPY conf/web_without_auth.xml /camunda/conf/web_without_auth.xml
COPY conf/logging.properties /camunda/conf/logging.properties
COPY conf/startup.sh /camunda/senergy_startup.sh
COPY conf/health.sh /camunda/health.sh
USER root
RUN chmod a+rw /camunda/conf/server.xml
RUN chmod a+rw /camunda/conf/server_temp.xml
RUN chmod a+rw /camunda/conf/tomcat-users_templ.xml
RUN chmod a+rw /camunda/conf/web_templ.xml
RUN chmod a+rw /camunda/conf/web_without_auth.xml
RUN chmod a+rw /camunda/conf/logging.properties
RUN chmod a+x /camunda/senergy_startup.sh
RUN chmod a+x /camunda/health.sh
USER camunda
ENV JAVA_TOOL_OPTIONS="-Dlog4j.formatMsgNoLookups=true"
ENV LIB_DIR /camunda/lib/
ENV BIN_DIR /camunda/bin/
ENV MAIL_CONFIG ${BIN_DIR}mail-configuration.properties
ENV MAIL_CONFIG_TEMPL ${BIN_DIR}mail-configuration.properties.templ
ENV NEXUS https://artifacts.camunda.com/artifactory
ENV MAIL_CONNECTOR ${NEXUS}/camunda-bpm-community-extensions/org/camunda/bpm/extension/camunda-bpm-mail-core/1.2.0/camunda-bpm-mail-core-1.2.0.jar
ENV JAVA_MAIL https://github.com/javaee/javamail/releases/download/JAVAMAIL-1_6_2/javax.mail.jar
# add camunda bpm mail connector
ADD ${MAIL_CONNECTOR} ${LIB_DIR}
# add java mail lib
ADD ${JAVA_MAIL} ${LIB_DIR}
# add mail configurations
ADD conf/mail-configuration.properties ${MAIL_CONFIG_TEMPL}
ADD conf/mail-configuration.properties ${MAIL_CONFIG}
USER root
RUN chmod a+r /camunda/lib/camunda-bpm-mail-core-1.2.0.jar
RUN chmod a+r /camunda/lib/javax.mail.jar
RUN chmod a+rw ${MAIL_CONFIG}
RUN chmod a+rw ${MAIL_CONFIG_TEMPL}
RUN ln -sf /proc/self/fd/1 /camunda/logs/camunda_access_log.txt
RUN apk add curl
USER camunda
CMD ["./senergy_startup.sh"]