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.
- AWS Account (needs AccesKey and SecretID)
- Docker machine
- A remote git repository
- Fork this repository
mvn test
mvn package
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