Git Product home page Git Product logo

lm-lab-cicd-devops-bookstore-api's Introduction

CI/CD with CircleCI

Introduction

In this guided set of instructions we're going to:

  • Introduce a few Python unit tests
  • Configure a CI/CD tool (in our case CircleCI) to build the application and run the unit tests
  • Configure the CircleCI tool to also build the docker image and push to your container registry

Instructions

For following through these instructions you can take two approaches:

  1. Fork this repository into your own GitHub account and then read through the files and steps. Utilising this repository means everything is already set-up.

  2. Follow through the instructions and apply the changes to your already existing bookstore API repository.

We'd recomend taking option 2 above as it will help piece together the job of the different files but if you have any problems then option 1 (the end result) is there too.

Step 1 - Create the unit tests

Firstly lets introduce a few Python unit tests.

Don't worry if you don't code in Python we'll guide you through it and the focus for the DevOps programme isn't really Python, we're just using it as a means by which to have an application to be built and tested.

Head over to the unit test instructions to add in the tests

Step 2 - CircleCI setup

Now you've got a few unit tests we can start the work on configuring a CI/CD tool. In the case of this tutorial, we'll utilise CircleCI.

Head over to the CircleCI instructions to get things setup.

Step 3 - CircleCI pushing docker image

The next phase is Cloud provider specific. Here you'll update your pipeline to push to your target container registry.

For AWS, head over to the AWS and Circle instructions

For Google Cloud, head over to the GCP and Circle instructions (Coming soon...)

For Azure, head over to the Azure and Circle instructions

lm-lab-cicd-devops-bookstore-api's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.