mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-10 20:11:11 +00:00
Pipeline with JFrog CLI
This commit is contained in:
parent
30aab0ae76
commit
e2fbe9bef3
6 changed files with 1342 additions and 0 deletions
1301
.github/workflows/jf-cli.yml
vendored
Executable file
1301
.github/workflows/jf-cli.yml
vendored
Executable file
File diff suppressed because it is too large
Load diff
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -49,3 +49,8 @@ out/
|
|||
_site/
|
||||
*.css
|
||||
!petclinic.css
|
||||
|
||||
*.jfrog
|
||||
.gradle
|
||||
.mvn
|
||||
target/
|
||||
9
jfcli.sh
Executable file
9
jfcli.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
export JF_NAME="psazuse" JFROG_CLI_LOG_LEVEL="DEBUG"
|
||||
export JF_RT_URL="https://${JF_NAME}.jfrog.io" RT_REPO_VIRTUAL="krishnam-mvn-virtual"
|
||||
|
||||
export BUILD_NAME="spring-petclinic" BUILD_ID="cmd.$(date '+%Y-%m-%d-%H-%M')"
|
||||
|
||||
jf mvnc --global --repo-resolve-releases ${RT_REPO_VIRTUAL} --repo-resolve-snapshots ${RT_REPO_VIRTUAL}
|
||||
|
||||
jf mvn clean install --build-name=${BUILD_NAME} --build-number=${BUILD_ID}
|
||||
17
jfrog/Dockerfile
Executable file
17
jfrog/Dockerfile
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
# base image https://hub.docker.com/layers/library/openjdk/17-jdk-alpine/
|
||||
# FROM openjdk:17-jdk-alpine
|
||||
# https://hub.docker.com/_/amazoncorretto/
|
||||
FROM psazuse.jfrog.io/springpetclinic-docker-virtual/amazoncorretto:17-alpine-jdk
|
||||
|
||||
# Set environment variables ref: https://docs.docker.com/build/building/variables/#env-usage-example
|
||||
ARG JAR_FILE
|
||||
# ENV JAR_FILE=spring-petclinic-3.5.0-SNAPSHOT.jar
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY target/${JAR_FILE} /app/
|
||||
|
||||
# Set the command to run the Spring Boot application
|
||||
# java -jar target/spring-petclinic-3.2.0-SNAPSHOT.jar --server.port=7080
|
||||
# CMD java -jar ${JAR_FILE}
|
||||
CMD ["java", "-jar", ${JAR_FILE}]
|
||||
2
jfrog/README.md
Normal file
2
jfrog/README.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Spring-PetClinic screenshots in JFrog & GitHub
|
||||
|
||||
8
spring-petclinic.code-workspace
Normal file
8
spring-petclinic.code-workspace
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"settings": {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue