A sample Java Spring application to exercise Jenkins
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.mvn/wrapper
ci
gradle
src
.gitignore
Dockerfile
Jenkinsfile
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
manifest-dev.yml
manifest.yml
mvnw
mvnw.cmd
pom.xml
sample-app-deployment.yaml
sample-app-pod.yaml
sample-app-service.yaml

README.md

Spring demo application

Running Locally

  • Start up the Service using the following command
./gradlew bootRun
  • A very basic UI to exercise the API is available at http://localhost:8080

  • This repo is primarily for testing out the Jenkins pipeline that uses it, very little else useful.

  • Run inside a docker container using the following:

./mvnw package -DskipTests
docker run -v $HOME/src/sample-spring-cloud-svc-ci:/opt/repo  -p 8080:8080 openjdk:latest java -jar /opt/repo/target/sample-spring-cloud-svc-ci-1.0.0-SNAPSHOT.jar

To launch in kubernetes:

kubectl create -f sample-app-service.yaml
kubectl create -f sample-app-deployment.yaml

To see your application running, curl the external ip of your kubernetes node with the port number listed in the output of the service.