-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded dependencies, replaced deprecated code
- Loading branch information
Showing
15 changed files
with
87 additions
and
524 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,31 +1,5 @@ | ||
FROM openjdk:11-jre as builder | ||
WORKDIR /application | ||
COPY maven/*.jar application.jar | ||
RUN java -Djarmode=layertools -jar application.jar extract | ||
|
||
# Download dockerize and cache that layer | ||
ARG DOCKERIZE_VERSION | ||
ADD https://github.com/jwilder/dockerize/releases/download/${DOCKERIZE_VERSION}/dockerize-alpine-linux-amd64-${DOCKERIZE_VERSION}.tar.gz ./dockerize.tar.gz | ||
RUN tar xzf dockerize.tar.gz | ||
RUN chmod +x dockerize | ||
|
||
FROM adoptopenjdk:16-jre-hotspot | ||
|
||
LABEL maintainer="zhoozhoo@yahoo.com" | ||
|
||
WORKDIR /application | ||
|
||
# Dockerize | ||
COPY --from=builder application/dockerize ./ | ||
|
||
ARG EXPOSED_PORT | ||
EXPOSE ${EXPOSED_PORT} | ||
|
||
FROM eclipse-temurin:21-jre-alpine | ||
LABEL Author="zhoozhoo@yahoo.com" | ||
ENV SPRING_PROFILES_ACTIVE docker | ||
|
||
COPY --from=builder application/dependencies/ ./ | ||
COPY --from=builder application/spring-boot-loader/ ./ | ||
COPY --from=builder application/snapshot-dependencies/ ./ | ||
COPY --from=builder application/application/ ./ | ||
|
||
ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"] | ||
COPY maven/*.jar application.jar | ||
ENTRYPOINT ["java","-jar","/application.jar"] |
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
31 changes: 10 additions & 21 deletions
31
...ng-cloud-api-gateway/src/main/java/ca/zhoozhoo/springcloud/api/config/SecurityConfig.java
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
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.