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
static { | |
BlockHound.install(builder -> { | |
builder.blockingMethodCallback(it -> { | |
new Error(it.toString()).printStackTrace(); | |
}); | |
}); | |
} |
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
.gradle | |
/build/ | |
!gradle/wrapper/gradle-wrapper.jar | |
### IntelliJ IDEA ### | |
.idea | |
*.iws | |
*.iml | |
*.ipr | |
/out/ |
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
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 2 | |
indent_style = space | |
insert_final_newline = false | |
max_line_length = 100 | |
tab_width = 2 | |
ij_continuation_indent_size = 4 | |
ij_formatter_off_tag = @formatter:off |
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
FROM openjdk:17-oracle AS BUILD_IMAGE | |
ENV BASE_DIRECTORY=/app/ | |
WORKDIR $BASE_DIRECTORY | |
COPY build.gradle settings.gradle gradlew $BASE_DIRECTORY | |
COPY gradle $BASE_DIRECTORY/gradle | |
RUN ./gradlew build --stacktrace || return 0 | |
COPY src $BASE_DIRECTORY/src | |
RUN ./gradlew build --stacktrace | |
FROM openjdk:17-oracle |
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
FROM openjdk:17-oracle | |
ENV BASE_DIRECTORY=app | |
WORKDIR $BASE_DIRECTORY | |
COPY /build/libs/main-service.jar . | |
EXPOSE 8080 | |
ENTRYPOINT ["java","-jar","main-service.jar"] |