Deploy Dockerized Next.js to AWS EC2 with GitLab CI | Step-by-Step Guide
Автор: Build With LaL
Загружено: 2024-11-15
Просмотров: 732
Описание:
Chapters:
00:00 Intro
00:31 What we cover in this video?
01:13 Set Up EC2 Instance
02:53 Install Docker on EC2
05:20 Install AWS SSM Agent on EC2
06:06 Create GitLab Identity Provider in AWS IAM
07:36 Create IAM Role for GitLab Identity Provider
09:35 Create IAM Role for AWS SSM Agent
10:34 Attach SSM Agent Role to EC2
11:45 Revise what we have covered so far
12:18 Create GitLab CI Pipeline for Next.js
16:23 Create Deploment Script
18:54 Test Next.js deployment to EC2 using GitLab CI
21:28 Summary
In this video, i'll walk you guys through how to deploy a dockerized next.js application to AWS EC2 using GitLab CI Pipeline without manaing SSH keys manually or using aws secret keys inside gitlab CI pipelie.
We'll first setup an EC2 instance, then we'll install docker and SSM agent on EC2. next we'll create some IAM roles and identity provider for GitLab Ci to securely connect and deploy next.js app to EC2.
Next we'll create the gitlab CI pipeline and the final deployment script to take care of actual deployment to ec2.
Source code available here on GitHub
https://github.com/BuildWithLal/gitla...
This demo is published as article on medium.com as well. Please check here
/ automate-next-js-deployment-to-aws-ec2-wit...
If you need to setup your custom gitlab server either on your local machine
or you want to deploy it somewhere on production, you can dockerize gitlab server as a docker image and run it anywhere you want.
If you want to run your gitlab server in a docker container without docker compose
Watch this video
• Run Your Local GitLab Server in Docker Con...
If you want to run your gitlab server in a docker container using docker compose
instead of running docker commands from terminal. Watch this video
• Run Your Local GitLab Server in Docker Con...
We have a full playlist of all gitlab related videos here
GitLab Playlist: • GitLab on Docker
#docker #gitlab #coding #container #containerization #gitlab_server #gitlab_runner #gitlab_in_docker #dockerize_gitlab #gitlab_ci #gitlab_pipelines #gitlab_in_docker_compose
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: