Github Action to AWS ECR (Docker Image) | Full Hands-on Tutorial

  Рет қаралды 4,846

Data Science Garage

Data Science Garage

Күн бұрын

Data Science Garage presents a hands-on step by step tutorial: how to push a #Docker image which was built from Machine Learning (#ML) application directly in Github repository to AWS Elastic Container Registry (#AWS ECR). The provided steps are valid for any application stored in Github repository, for example for NodeJS, C++, React -based applications. The app. project must contains a Dockerfile which defines an instruction how to build a Docker image from that app.
With this tutorial you will learn how to write an YML (sometimes is called YAML) script to define your workflow. Github Action triggers this workflow file on push events in your Github repository. This approach is broadly used in Machine Learning Operations (MLOps) domain where ML engineers/ML developers builds solutions to automate application testing, deploying, monitoring and debugging. For DevOps this technique is also beneficial in designing CI/CD (Continuous Integration and Continuous Delivery) pipelines.
The parts of this video are:
0:00 - Solution scheme and theory
2:10 - Main facts about the application
3:56 - Start Setup Github action
6:31 - Create AWS User
8:01 - Handle AWS User credentials
9:39 - Create AWS ECR Repository
11:01 - Save Github Action and test workflow
12:03 - Github action test (2) - after changes made on the code
13:32 - Result: AWS ECR Images
Amazon Elastic Container Registry (Amazon ECR) is an AWS managed container image registry service that is secure, scalable, and reliable. Amazon ECR supports private repositories with resource-based permissions using AWS IAM. AWS ECR has many integration points with other AWS services, such as AWS SageMaker, AWS K8S. Additionally, you can bring your application images to AWS ECR by using MLflow API.
Official AWS ECR website: docs.aws.amazon.com/AmazonECR...
You can clone the repository used in this tutorial and replicate all the steps by yourself. Get the repository from here: github.com/vb100/github-actio...
Workflow file (main.yml) which declares steps of CI/CD pipeline: raw.githubusercontent.com/vb1...
Once you have built your Docker images on AWS ECR, you can bring your application to production in several scenarios. You can combine it with Kubernetes, or if it is a ML-based application, you can deploy it in production by enabling batch predictions (I have prepared a video tutorial for that here: • How to Deploy ML model... )
If you have any comments or suggestions for the next tutorial/video, drop a comment below.
Thank you!

Пікірлер: 8
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thank you for watching this tutorial! I hope you found it useful. If you want to learn more about Docker and MLOps, the following tutorials would be also beneficial for you: 1. Data Versioning Control with Real ML Project: kzfaq.info/get/bejne/bpaaf5SBp5-1oYE.html 2. How to build ML Architecture with AWS SageMaker + Lambda + API Gateway: kzfaq.info/get/bejne/qdp0Z5qntarFlH0.html 3. Dockerize Flask API application with Dockerfile and Docker Compose: kzfaq.info/get/bejne/bKtdeZx8sdTMkmw.html 4. Microservices with FastAPI and Docker: kzfaq.info/get/bejne/mbqEh6Zkrs7PdJc.html 5. How to Deploy ML model to AWS Sagemaker with mlflow and Docker: kzfaq.info/get/bejne/fNmfhqWk18ncaYU.html Enjoy and happy learning!
@estebanmorales5445
@estebanmorales5445 2 ай бұрын
Thank you very much :)
@alberto-lopez
@alberto-lopez Жыл бұрын
Brilliant! Thank you very much :) It helped me a lot!
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thank you for feedback! Appreciate! :)
@dnial6992
@dnial6992 Жыл бұрын
thanks a lot for this useful content!
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thanks for such feedback, it's inspiring!
@ellb.9512
@ellb.9512 Жыл бұрын
Thank you so much!
@DataScienceGarage
@DataScienceGarage Жыл бұрын
Thank you for watching! :)
OpenAI Whisper - Fine tune to Lithuanian | step-by-step with Python
16:43
Data Science Garage
Рет қаралды 9 М.
How to Deploy a Docker App to AWS using Elastic Container Service (ECS)
15:11
MEU IRMÃO FICOU FAMOSO
00:52
Matheus Kriwat
Рет қаралды 40 МЛН
Wait for the last one! 👀
00:28
Josh Horton
Рет қаралды 124 МЛН
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 77 МЛН
🌊Насколько Глубокий Океан ? #shorts
00:42
GitHub Actions Tutorial - Basic Concepts and CI/CD Pipeline with Docker
32:31
TechWorld with Nana
Рет қаралды 1,4 МЛН
Find Outliers with AutoEncoder - Full Tutorial (Hands-on and Theory)
18:30
Data Science Garage
Рет қаралды 1,1 М.
How GitHub Actions 10x my productivity
8:18
Beyond Fireship
Рет қаралды 392 М.
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,7 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 149 М.
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 1,8 МЛН
Ультрабюджетная игровая мышь? 💀
1:00