FINERACT-1177: Add feature to include external libraries
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
d4a2bd143c
commit
3aab75db2d
+7
-9
@@ -24,23 +24,21 @@ WORKDIR /fineract
|
|||||||
|
|
||||||
RUN ./gradlew --no-daemon -q -x rat -x compileTestJava -x test -x spotlessJavaCheck -x spotlessJava bootJar
|
RUN ./gradlew --no-daemon -q -x rat -x compileTestJava -x test -x spotlessJavaCheck -x spotlessJava bootJar
|
||||||
|
|
||||||
WORKDIR /fineract/target
|
|
||||||
RUN jar -xf /fineract/fineract-provider/build/libs/fineract-provider*.jar
|
|
||||||
|
|
||||||
# https://issues.apache.org/jira/browse/LEGAL-462
|
# https://issues.apache.org/jira/browse/LEGAL-462
|
||||||
# https://issues.apache.org/jira/browse/FINERACT-762
|
# https://issues.apache.org/jira/browse/FINERACT-762
|
||||||
# We include an alternative JDBC driver (which is faster, but not allowed to be default in Apache distribution)
|
# We include an alternative JDBC driver (which is faster, but not allowed to be default in Apache distribution)
|
||||||
# allowing implementations to switch the driver used by changing start-up parameters (for both tenants and each tenant DB)
|
# allowing implementations to switch the driver used by changing start-up parameters (for both tenants and each tenant DB)
|
||||||
# The commented out lines in the docker-compose.yml illustrate how to do this.
|
# The commented out lines in the docker-compose.yml illustrate how to do this.
|
||||||
WORKDIR /fineract/target/BOOT-INF/lib
|
WORKDIR /fineract/libs
|
||||||
RUN wget -q https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.20/mysql-connector-java-8.0.20.jar
|
RUN wget -q https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.23/mysql-connector-java-8.0.23.jar
|
||||||
|
|
||||||
# =========================================
|
# =========================================
|
||||||
|
|
||||||
FROM gcr.io/distroless/java:11 as fineract
|
FROM gcr.io/distroless/java:11 as fineract
|
||||||
|
|
||||||
COPY --from=builder /fineract/target/BOOT-INF/lib /app/lib
|
COPY --from=builder /fineract/fineract-provider/build/libs /app
|
||||||
COPY --from=builder /fineract/target/META-INF /app/META-INF
|
COPY --from=builder /fineract/libs /app/libs
|
||||||
COPY --from=builder /fineract/target/BOOT-INF/classes /app
|
|
||||||
|
|
||||||
ENTRYPOINT ["java", "-cp", "app:app/lib/*", "org.apache.fineract.ServerApplication"]
|
WORKDIR /app
|
||||||
|
|
||||||
|
ENTRYPOINT ["java", "-Dloader.path=/app/libs/", "-jar", "/app/fineract-provider.jar"]
|
||||||
|
|||||||
@@ -250,6 +250,9 @@ springBoot {
|
|||||||
|
|
||||||
bootJar {
|
bootJar {
|
||||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
|
manifest {
|
||||||
|
attributes 'Main-Class': 'org.springframework.boot.loader.PropertiesLauncher'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bootWar {
|
bootWar {
|
||||||
|
|||||||
Reference in New Issue
Block a user