Coder Social home page Coder Social logo

building-ci-cd-pipelines's Introduction

Python application test with Github Actions

Build Status

Overview

This project Setup is on a Continuous Integration/Continuous delivery pipeline for a Python-based machine learning application using the Flask web framework.

Project Plan

Instructions

  • Architectural Diagram (Shows how key parts of the system work) diagram

Launch Azure Cloud Shell

image

Generate SSH key and upload the public key to github

ssh-keygen -t rsa

NOTE: use cat ~/.ssh/id_rsa.pub if you have generated it before

image

Clone the repository using Azure Cloud Shell

git clone [email protected]:AnimogM/Building-CI-CD-Pipelines.git

image

Create a new python virtual environnement

cd Building-CI-CD-Pipelines
python3 -m venv venv
source venv/bin/activate

Install dependencies and build the app

make all

iamge

Setup Github Actions

iamge iamge

Create Azure App Service

az webapp up --sku F1 -n maryam-ml-app

iamge

Setup Azure DevOps

  • Go to https://dev.azure.com and sign in.
  • Create a new private project.
  • Under Project Settings create a new service connection and select Azure Resource Manager.
  • Create a Python-specific pipeline to deploy to App Service, and linked it to your GitHub repo.

image image

Get app logs

az webapp log tail

image

Test the app is up and running

  • set the app name inside make_predict_azure_app.sh file

image

image

  • Output of streamed log files from deployed application image image

Enhancements

It an be improvedon by having multiple environments (Dev, Staging and Production) and have a pipeline for each environment.

Demo

https://youtu.be/S4hdH8pHzoA

building-ci-cd-pipelines's People

Contributors

animogm avatar

Watchers

 avatar

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.