-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MODLD-40: docker and jenkins files * MODLD-40: added prometheus with endpoints and disable open-in-view property
- Loading branch information
Showing
5 changed files
with
42 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* | ||
!Dockerfile | ||
!docker* | ||
!mod-linked-data/target/*.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM folioci/alpine-jre-openjdk17:latest | ||
|
||
# Copy your fat jar to the container | ||
ENV APP_FILE mod-linked-data-fat.jar | ||
# - should be a single jar file | ||
ARG JAR_FILE=./target/*.jar | ||
# - copy | ||
COPY ${JAR_FILE} ${JAVA_APP_DIR}/${APP_FILE} | ||
|
||
# Expose this port locally in the container. | ||
EXPOSE 8081 |
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,20 @@ | ||
buildMvn { | ||
publishModDescriptor = true | ||
mvnDeploy = true | ||
doKubeDeploy = true | ||
doUploadApidocs = true | ||
buildNode = 'jenkins-agent-java17' | ||
|
||
doApiLint = true | ||
doApiDoc = true | ||
apiTypes = 'OAS' | ||
apiDirectories = 'src/main/resources/swagger.api' | ||
|
||
doDocker = { | ||
buildDocker { | ||
publishMaster = true | ||
healthChk = false | ||
healthChkCmd = 'wget --no-verbose --tries=1 --spider http://localhost:8081/admin/health || exit 1' | ||
} | ||
} | ||
} |
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