java-spring-api
Simple java rest api using spring (by sybrenbolandit)
jenkins-ci
Example pipeline library (by sybrenbolandit)
Our great sponsors
java-spring-api | jenkins-ci | |
---|---|---|
12 | 3 | |
0 | 0 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | over 4 years ago | |
Java | Groovy | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
java-spring-api
Posts with mentions or reviews of java-spring-api.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-09.
-
FLUENT
We start with an example app that will generate logs. We will use a Java API from a previous post on deploying with Helm. For the complete code for this section take a look at this branch here. We see that we have a logback.xml where we specify to write logs to a file. (See here te relevant part)
-
OAS3 AND SPRING BOOT
We will add OAS3 documentation to a Java Spring API from a previous post on Kubernetes Helm. The completed code for this post is found on github here.
-
SPRING AUTOCONFIGURE
We are going to reuse an application that we made in an earlier post (found here). It’s just a basic setup with a greetings endpoint. The code that is used is found on github here.
-
PROMETHEUS ALERTING
Now we have the architecture in place. We only need to add a Prometheus Rule for our application that triggers an alert. We build from the Spring Boot application that we deployed in the cluster in an earlier post. The configuration of this rule is done as another CRD and is found on this branch on github.
-
KUBERNETES AND PROMETHEUS
The full code can be found on this branch. Here are the steps I took.
-
GENERIC JENKINS FILE
With our library in place we can remove the pipeline config out of our Jenkins file and refer to it as follows: (or checkout the code here)
-
JENKINS DELOY TO KUBERNETES
To get our app running on kubernetes we need a deployment definition. Check out this branch of our test application and check deployment/deployment.yaml:
-
DOCKER ON JENKINS
We need an application to test our Jenkins pipeline on. Let’s take a simple Java API using Spring. Here is the application I used on github.
jenkins-ci
Posts with mentions or reviews of jenkins-ci.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-07-23.
-
CHROME HEADLESS ON JENKINS
First we update our Jenkins pipeline library to run tests. Here is how I did this building on my older posts. In vars/buildNpm.groovy add the following line to the scripts.
-
NPM LIBRARY JENKINS
And define the generic pipeline in our groovy library as vars/npmLibraryPipeline.groovy as we can see here.
-
GENERIC JENKINS FILE
Look at the code here to see how our pipeline library looks. The project is structured like this:
What are some alternatives?
When comparing java-spring-api and jenkins-ci you can also consider the following projects:
fluent-bit - Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows
springdoc-openapi - Library for OpenAPI 3 with spring-boot
minikube-jenkins - Setup for helm install of jenkins on minikube
test-angular-library
Fluentd - Fluentd: Unified Logging Layer (project under CNCF)
spring-auto-configure-controller - Auto configured explamation-controller with Spring