Giter VIP home page Giter VIP logo

udacity-devops-microservices's Introduction

CircleCI

Project Overview

This project uses Docker and Kubernetes to deploy an api to predict housing prices in Boston. In this project, you will apply the skills you have acquired in this course to operationalize a Machine Learning Microservice API.

Setting Up the Environment

  1. Run make setup to create a python virtual environment.
  2. Run source ~/.devops/bin/activate to activate the virtual environment.
  3. Run make install to install the necessary dependencies

Running app.py

  1. Standalone: python app.py
  2. Run in Docker: ./run_docker.sh
  3. Run in Kubernetes: ./run_kubernetes.sh

Kubernetes Steps

  1. Setup and Configure Docker locally.
  2. Setup and Configure Kubernetes locally.
  3. Create Flask app in Container.
  4. Run via kubectl.

Usage

  1. Make sure the app is running as outlined in Running app.py.
  2. Run ./make_prediction.sh to make a request to the API.s

File Explanation

  • .circleci/config.yml: This file contains the CircleCI workflow definitions.
  • model_data/: This file contains the ML model for the prediction.
  • output_txt_files/: This directory contains the results of running run_docker.sh and run_kubernetes.sh.
  • app.py: The python web API that uses the ML model to predict housing prices.
  • make_prediction.sh: A script to make a sample request to the API.
  • Makefile: A makefile to script common operations.
  • requirements.txt: A list of Python dependencies used by app.py
  • run_docker.sh: A script that deploys and runs the app using docker.
  • run_kubernetes.sh: A script that deploys and runs the app using kubernetes.
  • upload_docker.sh: A script to push the docker image to Dockerhub.

udacity-devops-microservices's People

Contributors

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