forked from Sanketika-Obsrv/obsrv-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (32 loc) · 2.01 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
FROM --platform=linux/x86_64 maven:3.6.0-jdk-11-slim AS build-core
COPY . /app
RUN mvn clean install -DskipTests -f /app/framework/pom.xml
RUN mvn clean install -DskipTests -f /app/dataset-registry/pom.xml
FROM --platform=linux/x86_64 maven:3.6.0-jdk-11-slim AS build-pipeline
COPY --from=build-core /root/.m2 /root/.m2
COPY . /app
RUN mvn clean package -DskipTests -f /app/pipeline/pom.xml
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-java11 as extractor-image
USER flink
COPY --from=build-pipeline /app/pipeline/extractor/target/extractor-1.0.0.jar $FLINK_HOME/lib/
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-java11 as preprocessor-image
USER flink
COPY --from=build-pipeline /app/pipeline/preprocessor/target/preprocessor-1.0.0.jar $FLINK_HOME/lib/
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-java11 as denormalizer-image
USER flink
COPY --from=build-pipeline /app/pipeline/denormalizer/target/denormalizer-1.0.0.jar $FLINK_HOME/lib/
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-java11 as transformer-image
USER flink
COPY --from=build-pipeline /app/pipeline/transformer/target/transformer-1.0.0.jar $FLINK_HOME/lib/
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-java11 as router-image
USER flink
COPY --from=build-pipeline /app/pipeline/druid-router/target/druid-router-1.0.0.jar $FLINK_HOME/lib/
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-java11 as merged-image
USER flink
COPY --from=build-pipeline /app/pipeline/pipeline-merged/target/pipeline-merged-1.0.0.jar $FLINK_HOME/lib/
FROM --platform=linux/x86_64 sunbird/flink:1.15.2-scala_2.12-java11 as master-data-processor-image
USER flink
COPY --from=build-pipeline /app/pipeline/master-data-processor/target/master-data-processor-1.0.0.jar $FLINK_HOME/lib
FROM --platform=linux/x86_64 sunbird/flink:1.15.2-scala_2.12-java11 as kafka-connector-image
USER flink
COPY --from=build-pipeline /app/pipeline/kafka-connector/target/kafka-connector-1.0.0.jar $FLINK_HOME/lib