-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use different base images for frauddetectionservice (#691)
* Use different docker base images for frauddetection service Signed-off-by: svrnm <neumanns@cisco.com> * Add entry in CHANGELOG Signed-off-by: svrnm <neumanns@cisco.com> * update changelog Signed-off-by: svrnm <neumanns@cisco.com> * Remove extra blank line Signed-off-by: svrnm <neumanns@cisco.com> Co-authored-by: Juliano Costa <julianocosta89@outlook.com> Co-authored-by: Carter Socha <43380952+cartersocha@users.noreply.github.com>
- Loading branch information
1 parent
b337367
commit 17c9ade
Showing
3 changed files
with
8 additions
and
6 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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Dockerfile |
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,22 +1,21 @@ | ||
FROM eclipse-temurin:17 AS builder | ||
FROM gradle:7-jdk17 AS builder | ||
|
||
WORKDIR /usr/src/app/ | ||
|
||
COPY ./src/frauddetectionservice/ ./ | ||
COPY ./pb/ ./src/main/proto/ | ||
RUN chmod +x ./gradlew | ||
RUN ./gradlew shadowJar | ||
RUN gradle shadowJar | ||
|
||
# ----------------------------------------------------------------------------- | ||
|
||
FROM eclipse-temurin:17 | ||
FROM gcr.io/distroless/java17-debian11 | ||
|
||
ARG version=1.16.0 | ||
ARG version=1.22.1 | ||
WORKDIR /usr/src/app/ | ||
|
||
COPY --from=builder /usr/src/app/build/libs/frauddetectionservice-1.0-all.jar ./ | ||
ADD https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$version/opentelemetry-javaagent.jar /app/opentelemetry-javaagent.jar | ||
RUN chmod 644 /app/opentelemetry-javaagent.jar | ||
# RUN chmod 644 /app/opentelemetry-javaagent.jar | ||
ENV JAVA_TOOL_OPTIONS=-javaagent:/app/opentelemetry-javaagent.jar | ||
|
||
ENTRYPOINT [ "java", "-jar", "frauddetectionservice-1.0-all.jar" ] |