Demonstration of Circleci Lints,using docker container and kubernetes clusters in the AWS console.
- AWS account
- A Circleci Account. In this configure
- Add the AWS credentials as environment variables. Configure AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY,AWS_DEFAULT_REGIOn,DOCKER_USERNAME,DOCKER_PASSOWRD
- Your App to deploy
- Circleci
- Amazon Elastic Kubernetes Service (EKS)
- Cloud formation(will be created thorugh the circleci pipeline)
- Fork my project to your Github Account
- Add the AWS credentials as environment variables. Configure
- AWS_ACCESS_KEY_ID,
- AWS_SECRET_ACCESS_KEY
-
Complete your Dockerfile to build the image of your app
-
Add Makefile for linting
-
Complete your
.circleci/config.yml
. Implement Build and deploy jobs with CircleCI AWS ECR and AWS EKS orbs.orbs: aws-eks: circleci/aws-eks@1.1.0 kubernetes: circleci/kubernetes@0.4.0 aws-ecr: circleci/aws-ecr@7.2.0
- Then use the workflow
aws-eks/create-cluster
to create the cluster and all the required VPC-related resources to run Kubernetes on AWS. - the
deploy-application:
to deploy your application - Then adding the delete-application to avoid recurring charges on the aws console.
- Then use the workflow
-
Push code to github and the pipeline runs automatically .