I recently gave a talk at DockerCon and it was focused on showing the audience how to implement a CI/CD pipeline into their codebase with very little effort. In this post I’ll walk through the demo code and CircleCI config that I used in my talk and demonstrate how to implement CI/CD pipelines into your code base.
This post will cover:
- A simple unit test for a Python flask application
- How to implement a CI/CD pipeline in the codebase using a CircleCI config file in the project
- Building a Docker image
- Pushing the Docker image to Docker Hub
- Kicking off a deployment script which will run the application in Docker container on a Digital Ocean server