forked from Sunbird-Obsrv/obsrv-core
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #OBS-I210: Updated the hudi connector to read the atomic_creation from the configuration * MasterDataset Data Product changes (#93) * #OBS-#I129: Enhanced the masterdata processor data product the remove the datasources of configured retention periods only * #OBS-#I129: Reading retention period value from the configuration * #OBS-#I129: Removed the unwanted line * #OBS-I129: Code indentation changes * #OBS-#I129: Refactor - Reused the getDataSourceRefFormat method in other places * #OBS-I182: Cache indexer job changes to process only live status of Master Datasets (#97) * #OBS-I113 flink update to 1.17.2 * #OBS-I113 update entry class to sunbird * #OBS-I113 update jackson versions and dependencies * #OBS-I113 - Fix test cases for metrics post flink upgrade. And added configuration to shade jackson if necessary * #OBS-I113 update flink dockerfile to load jar from usrlib * #OBS-I113 update hudi to use jackson 2.13.4 * #OBS-I113 update hudi dockerfile --------- Co-authored-by: Manjunath Davanam <[email protected]> Co-authored-by: Santhosh Vasabhaktula <[email protected]>
- Loading branch information
1 parent
c311704
commit 8185b31
Showing
19 changed files
with
408 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,61 @@ | ||
FROM --platform=linux/x86_64 maven:3.9.4-eclipse-temurin-11-focal AS build-core | ||
FROM maven:3.9.4-eclipse-temurin-11-focal 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 | ||
RUN mvn clean install -DskipTests -f /app/transformation-sdk/pom.xml | ||
|
||
FROM --platform=linux/x86_64 maven:3.9.4-eclipse-temurin-11-focal AS build-pipeline | ||
FROM maven:3.9.4-eclipse-temurin-11-focal 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-jdk-11 as extractor-image | ||
FROM sanketikahub/flink:1.17.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/ | ||
RUN mkdir -p $FLINK_HOME/usrlib | ||
COPY --from=build-pipeline /app/pipeline/extractor/target/extractor-1.0.0.jar $FLINK_HOME/usrlib/ | ||
|
||
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-jdk-11 as preprocessor-image | ||
FROM sanketikahub/flink:1.17.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/ | ||
RUN mkdir -p $FLINK_HOME/usrlib | ||
COPY --from=build-pipeline /app/pipeline/preprocessor/target/preprocessor-1.0.0.jar $FLINK_HOME/usrlib/ | ||
|
||
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-jdk-11 as denormalizer-image | ||
FROM sanketikahub/flink:1.17.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/ | ||
RUN mkdir -p $FLINK_HOME/usrlib | ||
COPY --from=build-pipeline /app/pipeline/denormalizer/target/denormalizer-1.0.0.jar $FLINK_HOME/usrlib/ | ||
|
||
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-jdk-11 as transformer-image | ||
FROM sanketikahub/flink:1.17.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/ | ||
RUN mkdir -p $FLINK_HOME/usrlib | ||
COPY --from=build-pipeline /app/pipeline/transformer/target/transformer-1.0.0.jar $FLINK_HOME/usrlib/ | ||
|
||
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-jdk-11 as router-image | ||
FROM sanketikahub/flink:1.17.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/ | ||
RUN mkdir -p $FLINK_HOME/usrlib | ||
COPY --from=build-pipeline /app/pipeline/druid-router/target/druid-router-1.0.0.jar $FLINK_HOME/usrlib/ | ||
|
||
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-jdk-11 as unified-image | ||
FROM sanketikahub/flink:1.17.2-scala_2.12-java11 AS unified-image | ||
USER flink | ||
COPY --from=build-pipeline /app/pipeline/unified-pipeline/target/unified-pipeline-1.0.0.jar $FLINK_HOME/lib/ | ||
RUN mkdir -p $FLINK_HOME/usrlib | ||
COPY --from=build-pipeline /app/pipeline/unified-pipeline/target/unified-pipeline-1.0.0.jar $FLINK_HOME/usrlib/ | ||
|
||
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-jdk-11 as master-data-processor-image | ||
FROM sanketikahub/flink:1.17.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 | ||
RUN mkdir -p $FLINK_HOME/usrlib | ||
COPY --from=build-pipeline /app/pipeline/master-data-processor/target/master-data-processor-1.0.0.jar $FLINK_HOME/usrlib/ | ||
|
||
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.0-scala_2.12-lakehouse as lakehouse-connector-image | ||
FROM sanketikahub/flink:1.17.2-scala_2.12-java11 AS lakehouse-connector-image | ||
USER flink | ||
RUN mkdir $FLINK_HOME/custom-lib | ||
COPY ./pipeline/hudi-connector/target/hudi-connector-1.0.0.jar $FLINK_HOME/custom-lib | ||
RUN wget https://repo1.maven.org/maven2/org/apache/flink/flink-shaded-hadoop-2-uber/2.8.3-10.0/flink-shaded-hadoop-2-uber-2.8.3-10.0.jar | ||
RUN wget https://repo1.maven.org/maven2/org/apache/flink/flink-s3-fs-hadoop/1.17.2/flink-s3-fs-hadoop-1.17.2.jar | ||
RUN wget https://repo.maven.apache.org/maven2/org/apache/hudi/hudi-flink1.17-bundle/0.15.0/hudi-flink1.17-bundle-0.15.0.jar | ||
RUN mv flink-shaded-hadoop-2-uber-2.8.3-10.0.jar $FLINK_HOME/lib | ||
RUN mv flink-s3-fs-hadoop-1.17.2.jar $FLINK_HOME/lib | ||
RUN mv hudi-flink1.17-bundle-0.15.0.jar $FLINK_HOME/lib | ||
# RUN mkdir $FLINK_HOME/custom-lib | ||
COPY --from=build-pipeline /app/pipeline/hudi-connector/target/hudi-connector-1.0.0.jar $FLINK_HOME/lib | ||
|
||
FROM --platform=linux/x86_64 sanketikahub/flink:1.15.2-scala_2.12-jdk-11 as cache-indexer-image | ||
FROM sanketikahub/flink:1.17.2-scala_2.12-java11 AS cache-indexer-image | ||
USER flink | ||
COPY --from=build-pipeline /app/pipeline/cache-indexer/target/cache-indexer-1.0.0.jar $FLINK_HOME/lib | ||
RUN mkdir -p $FLINK_HOME/usrlib | ||
COPY --from=build-pipeline /app/pipeline/cache-indexer/target/cache-indexer-1.0.0.jar $FLINK_HOME/usrlib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.