Git Product home page Git Product logo

udacity_azure_project_2's Introduction

Udacity Azure Project 2

Python application test with Github Actions

Overview

This is the second udacity project to demonstrate the continious integration and continious delivery process using Github and Azure of for Integration and deployment respectively.

The project implementation steps include:

  • Project Planning
  • CI: Set Up Azure Cloud Shell
  • CI: Configure Github Actions
  • Continious Delievery on Azure

Requirements

Project Plan

Instructions

The workflow shown below shows the flask ML application deployment workflow architecture.

Architectural Diagram

Task 1: CI: Set Up Azure Cloud Shell

  • Ensure you have an SSH key generated for your system. If not you can generate one using the command ssh-keygen -t rsa and then copy it to your github page as explained in this page
  • Clone the github repository for this project using the following command
git clone [email protected]:Dumken1/udacity_azure_project_2.git

gitcloning

  • Enter the folder using cd udacity_azure_project_2 and then run the following command to create a virtual environment.
python3 -m venv ~/.udacity_azure_project_2
source ~/.udacity_azure_project_2/bin/activate

After this run the make all command to download and install the dependency files then also lint and test the hello.py code.

Your output should be similar to the image shown below.

make all

Task 2: Github Actions

The github actions is already setup and can be triggered by any modification of the repo both on the github and by CLI "commit" and "push" command.

A successful integration should have similar output on the github actions view page as shown in the image below.

git action

Task 3: Continious Deployment on Azure

  • create web app by executing command
az webapp up --name dumken --resource-group Azuredevops --runtime "PYTHON:3.7"

You should have a similar output as shown below

Web_app_name

WebApp_portal_view

  • Login into your Azure portal and Azure Devops account then follow the process shown in this Document to setup your deployment processes and setting up a service connection.

  • After setup, the azure devops pipeline will show the build and deployment stages of your webapp. A successful build and deplomwnt result should be similar as shown below.

git action

Webpage

Run the make_predict_azure_app.sh bash file to make predictions. ou should have a similar output shown below.

Webpage

  • Output of streamed log files from deployed application

log

Locust Output

locust

Enhancements

  • Automate processes using IAS
  • Write a test for the app.py

Demo

Video of Demo

udacity_azure_project_2's People

Contributors

dumken1 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.