-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile.deploy
More file actions
94 lines (71 loc) · 3.71 KB
/
Copy pathDockerfile.deploy
File metadata and controls
94 lines (71 loc) · 3.71 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
FROM alpine as artifacts
RUN apk add git maven openjdk8 bash zip curl -f
COPY ./demo_processes/pizza_order/src /usr/src/demo_processes/pizza_order/src
COPY ./demo_processes/pizza_order/pom.xml /usr/src/demo_processes/pizza_order/pom.xml
COPY ./demo_processes/pizza_order/build.sh /usr/src/demo_processes/pizza_order/build.sh
COPY ./demo_processes/new_customer/src /usr/src/demo_processes/new_customer/src
COPY ./demo_processes/new_customer/pom.xml /usr/src/demo_processes/new_customer/pom.xml
COPY ./demo_processes/new_customer/build.sh /usr/src/demo_processes/new_customer/build.sh
COPY ./demo_processes/relocate_customer/src /usr/src/demo_processes/relocate_customer/src
COPY ./demo_processes/relocate_customer/pom.xml /usr/src/demo_processes/relocate_customer/pom.xml
COPY ./demo_processes/relocate_customer/build.sh /usr/src/demo_processes/relocate_customer/build.sh
COPY ./seed/src /usr/src/seed/src
COPY ./seed/pom.xml /usr/src/seed/pom.xml
COPY ./seed/build.sh /usr/src/seed/build.sh
COPY ./src /usr/src/src
COPY ./pom.xml /usr/src/pom.xml
ENV ROOT_DIR /usr/src/
WORKDIR $ROOT_DIR
# Build camunda-ext
RUN mvn clean compile package
# Copy all JAR dependencies to ./target/dependencies
RUN mvn dependency:copy-dependencies -U
# Build seed
RUN cd ./seed && \
./build.sh && \
cd $ROOT_DIR
# Build demo processes
RUN cd ./demo_processes && \
find ./ -type d -maxdepth 1 -mindepth 1 -exec bash -c "cd {} && ./build.sh" ';' && \
cd $ROOT_DIR
# Get demo processes list
RUN cd ./demo_processes && \
find ./ -type d -maxdepth 1 -mindepth 1 -exec bash -c "cd {} && echo \$(basename \$(pwd))" ';' > $ROOT_DIR/demo_processes/list
FROM camunda/camunda-bpm-platform:7.14.0
SHELL ["/bin/bash", "-c"]
USER root
RUN rm -rf /camunda/webapps/camunda-invoice \
/camunda/webapps/examples \
/camunda/lib/groovy-all-2.4.13.jar \
/camunda/lib/mail-1.4.1.jar && \
apk add wget curl busybox-extras -f
USER camunda
RUN sed -i 's/<!-- <filter>/<filter>/' /camunda/webapps/engine-rest/WEB-INF/web.xml && \
sed -i 's/<\/filter-mapping> -->/<\/filter-mapping>/' /camunda/webapps/engine-rest/WEB-INF/web.xml && \
sed -i 's/connectionTimeout="20000"/connectionTimeout="600000"/g' /camunda/conf/server.xml
COPY --chown=camunda:camunda ./camunda.sh /camunda/
COPY ./context.xml /camunda/conf/
COPY --from=artifacts /usr/src/target/dependencies/*.jar /camunda/lib/
COPY --from=artifacts /usr/src/demo_processes/list /camunda/demo/war.lst
COPY --from=artifacts /usr/src/demo_processes/*/target/*.war /camunda/webapps/
COPY --from=artifacts /usr/src/seed/target/*.war /camunda/webapps/
COPY --from=artifacts /usr/src/target/camunda-ext-*.jar /camunda/lib/camunda-ext.jar
ENV DB_DRIVER= \
DB_HOST= \
DB_PORT= \
DB_NAME= \
DB_USERNAME= \
DB_PASSWORD= \
DB_URL=
LABEL maintainer="Hydra Billing <info@hydra-billing.com>" \
org.opencontainers.image.authors="Hydra Billing <info@hydra-billing.com>" \
org.opencontainers.image.title="camunda-ext" \
org.opencontainers.image.description="Camunda with camunda-ext library inside" \
org.opencontainers.image.vendor="Hydra Billing Solutions LLC" \
org.opencontainers.image.licenses="Apache License 2.0" \
org.opencontainers.image.url="https://hub.docker.com/r/latera/camunda" \
org.openbuildservice.disturl="https://github.com/latera/camunda-ext/releases" \
org.opencontainers.image.source="https://github.com/latera/camunda-ext.git" \
org.opencontainers.image.documentation="https://latera.github.io/camunda-ext"
HEALTHCHECK --start-period=60s \
CMD wget -q --spider http://127.0.0.1:8080/camunda/app/welcome