Giter Site home page Giter Site logo

santoshchaurasiyacs / devops-skills-with-github Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nogibjj/devops-skills-with-github

1.0 0.0 0.0 31 KB

All of the tools for building devops workflows

License: Creative Commons Zero v1.0 Universal

Shell 15.88% Python 71.18% Makefile 6.93% Dockerfile 6.01%

devops-skills-with-github's Introduction

CI Codespaces Prebuilds

[codebuild

devops-skills-with-GitHub

All of the tools for building devops workflows

Part2: Automating Text and Filesystem

  • dive into pathlib

Part 3: Build containerized Microservice

/docs get to swagger

fastapi

#change

Docker

docker build . docker image ls #find image docker run -p 127.0.0.1:8080:8080 93fa55efa692

Cloud9 + ECR + App Runner

continuous-delivery

  • Clone repo into Cloud9 (pick a machine with decent size CPU and RAM if possible, but students should use micro)
  • Add ssh keys to GitHub
  • resize to bigger disk
  • Create virtualenv and add to bashrc and source python3 -m venv ~/.venv && echo 'source ~/.venv/bin/activate' >> ~/.bashrc && source ~/.bashrc
  • cd into checkout and run make install
  • Preview running FastAPI app after running: python main.py

Screen Shot 2022-09-28 at 12 32 52 PM

  • Create ECR repository by right-click in Cloud9

Screen Shot 2022-09-28 at 12 34 44 PM

  • Navigate to ECR repo created or whatever you named it and follow "push" instructions

    Screen Shot 2022-09-28 at 12 36 45 PM
  • Navigate to AWS App Runner and Setup Continuous Delivery using ECR

    Screen Shot 2022-09-28 at 12 41 21 PM
  • Setup AWS Code Build to push container after each build (which triggers auto-deploy)

    Screen Shot 2022-09-28 at 12 50 19 PM

See following buildspec.yml and Makefile

Things to Cover

  • Linting Dockerfile and also dealing with containers

Tips

  • Great way to find a package version: pip freeze | grep ipython

devops-skills-with-github's People

Contributors

noahgift avatar

Stargazers

Santosh Kumar 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.