CardoEggert / udacity-cloud-devops-engineer-nd-capstone-project

This repository is meant for Udacity Cloud Devops Engineer nanodegree capstone project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

udacity-cloud-devops-engineer-nd-capstone-project

CardoEggert

Summary

This project is for the Udacity Cloud Devops Engineer nanodegree course. It is meant to be submission for the capstone project. This project contains a simple spring boot java app. The goal of this project is to show off what was learned during the nanodegree course. I am making use of Dockerfile, CloudFormation script, Kubernetes, and CircleCI.

Files

  • Dockerfile - file used for creating docker image
  • app/ - app related files
  • .circleci/files/configure-k8.yml - cloudformation script for setting up AWS EKS Cluster
  • .circleci/files/k8/ - kubernetes related files for deployment and load balancing
  • .circleci/config.yml - CircleCI configuration

Instructions

For building the docker image

  1. Run gradle bootJar for creating the jar
  2. Run docker build --tag=<name> .
  3. Run docker run -p 8080:8080 <name>

CircleCI

After commiting a new change the following will happen.

  1. Does linting, compiling, and testing.
  2. Builds jar file
  3. Builds docker image with the created jar file
  4. Pushes docker image to AWS ECR
  5. Deploys K8 using CloudFormation
  6. Deploys app to K8 (applies deployment and service yaml files, afterwards updates docker image)
  7. Runs smoke tests (does curl command to newly deployed app)

After applying service.yaml to K8, AWS EKS creates Elastic Load Balancer which can be used to make requests. The same is done inside using smoke tests.

About

This repository is meant for Udacity Cloud Devops Engineer nanodegree capstone project.


Languages

Language:Java 88.9%Language:Dockerfile 11.1%