mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
A sample Spring-based application
.devcontainer | ||
.github | ||
.mvn/wrapper | ||
gradle | ||
src | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.gitpod.yml | ||
build.gradle | ||
docker-compose.yml | ||
Dockerfile | ||
gradlew | ||
gradlew.bat | ||
LICENSE.txt | ||
mvnw | ||
mvnw.cmd | ||
pom.xml | ||
readme.md | ||
settings.gradle |
JFrog Spring PetClinic
This repository is a customized fork of the original Spring PetClinic.
Modifications
The following enhancements and changes have been made to the original project:
- Upgrade to JVM 21: The project now runs on the latest JVM version 21 for improved performance and compatibility.
- Security Improvements: Resolved dependency issues related to:
Continuous Integration (CI) Pipeline
A robust CI pipeline has been set up with the following automated steps:
- Build: Compile the project using Maven.
- Test: Run tests using Maven to ensure code quality and reliability.
- Dockerize: Build and tag the Docker container for deployment.
- Security Scan: Launch a vulnerability scan to maintain robust security standards.
Instruction to use the repo
- Create 4 variables
- JF_URL : The url of your JFrog server
- JF_USER : The user authorize to use xray
- JF_ACCESS_TOKEN : your token to connect to Artifactory
- JF_REPO : your artifactory repo (ex: myrepo.jfrog.io)
- Authorize Github Actions. The github action will only execute on your main branch.
Docker Instructions
The Dockerfile
is located in the root directory of the repo. You can run the application locally on a Linux environment using Docker with the following command:
docker run -d -p 8080:8080 rodi26.jfrog.io/rodi26-docker-local/jfrog-spring-petclinic:latest
This command will start the application in detached mode, making it accessible on port 8080.