-
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.
Merge pull request #7 from aws-cloud-clubs/test/6-load-testing
Load Testing 페이로드 spec에 맞게 수정
- Loading branch information
Showing
3 changed files
with
43 additions
and
2 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 +1,2 @@ | ||
**/.DS_Store | ||
.idea |
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,31 @@ | ||
# SOURCE | ||
FROM alpine as source | ||
RUN ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime | ||
RUN echo Asia/Seoul > /etc/timezone | ||
|
||
WORKDIR /project | ||
COPY . . | ||
|
||
|
||
# BUILD (INCLUDE TEST) | ||
FROM azul/zulu-openjdk-alpine:17-latest AS build | ||
RUN ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime | ||
RUN echo Asia/Seoul > /etc/timezone | ||
|
||
WORKDIR /project | ||
COPY --from=source project . | ||
|
||
ENTRYPOINT ["./gradlew", "build"] | ||
|
||
|
||
# RUNNER | ||
FROM azul/zulu-openjdk-alpine:17-jre-latest AS runner | ||
RUN ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime | ||
RUN echo Asia/Seoul > /etc/timezone | ||
|
||
WORKDIR /project | ||
|
||
ARG JAR_FILE=project/build/libs/*.jar | ||
COPY ${JAR_FILE} app.jar | ||
|
||
ENTRYPOINT ["java", "-jar", "app.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