Skip to content

devops-opensource/continuous-deployment

Repository files navigation

Spring-Boot Project for Continuous Deployment demonstration

This project is a simple example of Rest API to demonstrate the steps and principles of continuous delivery across different platforms.

Java Spring-Boot Built from Spring Boot Initializer, it compiles with Maven, it contains a Tomcat Server Embedded and deploy easily on AWS BeanStalk Platform.

Requirement

  • AWS Account (needs AccesKey and SecretID)
  • Docker machine
  • A remote git repository
  • Fork this repository

Pipeline steps

Test

mvn test

Build

mvn package

Deploy to AWS

Configure config.xml in .elastikbeanstalk folder Export ACCESS_ID and SECRET_KEY as environment variables

  • Initialize eb-cli:

eb init continuous-deployment-demo -p "corretto-17" --region "ca-central-1"

  • Create (optional) environment:

eb create jenkins-env --single

  • Use environment:

eb use xyz-env

  • Set Spring-boot SERVER_PORT environment variable:

eb setenv SERVER_PORT=5000

  • Finally Deploy:

eb deploy

About

Demo for continuous deployment tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages