0% found this document useful (0 votes)
22 views5 pages

CI/CD Pipeline Deployment Report

This report outlines the implementation of a CI/CD pipeline using a Bash script to automate the deployment of an open-source project on HUC Cloud. The process includes pulling code from GitHub, containerizing the application with Docker, and deploying it on a cloud server, ensuring efficient updates with minimal manual intervention. The document also details the server configuration, deployment steps, and concludes with the benefits of automation in the deployment process.

Uploaded by

sbanu200201
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views5 pages

CI/CD Pipeline Deployment Report

This report outlines the implementation of a CI/CD pipeline using a Bash script to automate the deployment of an open-source project on HUC Cloud. The process includes pulling code from GitHub, containerizing the application with Docker, and deploying it on a cloud server, ensuring efficient updates with minimal manual intervention. The document also details the server configuration, deployment steps, and concludes with the benefits of automation in the deployment process.

Uploaded by

sbanu200201
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

CI/CD Deployment Report

1. Project Overview

Introduction
This report details the implementation of a CI/CD pipeline using a Bash script to automate
the deployment of an open-source project. The pipeline pulls the latest code from GitHub,
containerizes the application using Docker, and deploys it on an HUC Cloud Server.
Objective

The goal of this project is to automate deployment to ensure seamless and efficient application
updates, reducing manual intervention and potential errors.

• Technology Stack
• Cloud Provider: HUC Cloud
• Operating System: Ubuntu 24.04
• CI/CD Tools: Git, Bash scripting
• Containerization: Docker
• Version Control: GitHub

2. Server and Deployment Details

HUC Cloud Server Configuration


Cloud Provider: HUC Cloud
Public IPv4: [Link]
IPv6 Range: 2a01:4f9:c012:1de9::/64
Operating System: Ubuntu 24.04
Storage: As per cloud instance
User Access: SSH authentication

Deployment Setup
GitHub Repository: This project is hosted on GitHub and is automatically pulled for
deployment.

Docker Setup: The application is containerized to ensure a consistent environment.

Automated Script: A Bash script ([Link]) automates the process of pulling, building, and
running the application.
3. Step-by-Step Deployment Process
Step 1: SSH into the Cloud Server

Access the HUC Cloud server using SSH:

ssh root@[Link]
If prompted, change your password.
Changed password:G7!zXr4#vKdQ@pL9

Step 2: Install Required Dependencies

Update system packages and install Docker and Git:

sudo apt update && sudo apt upgrade -y


sudo apt install -y git [Link]
sudo systemctl enable --now docker

Step 3: Clone the GitHub Repository

Fetch the open-source project from GitHub:

git clone- [Link]


cd cicd-deployment

Step 4: Build and Run the Docker Container

Make the deployment script executable:

chmod +x [Link]

Run the deployment script:

./[Link]

This script does the following:

1. Pulls the latest code from the repository.


2. Builds a Docker image.
3. Stops and removes any existing container.
4. Runs a new Docker container.

Step 5: Verify Deployment

Check if the Docker container is running:

docker ps

Expected output should show the running container with port mapping.
Step 6: Access the Application
Open a browser and enter the server’s public IP address to verify the deployment:

[Link]

If the application is running correctly, you should see the deployed project in your browser.

4. Screenshots of Deployment
[Link]

1. Running the [Link] script successfully.


2. docker ps output showing the active container.
3. Web application running in a browser via [Link]

5. Conclusion
This project demonstrates an automated CI/CD deployment pipeline using a Bash script and
Docker on HUC Cloud. The automation ensures a streamlined deployment process, making it
easy to update applications with minimal downtime.
Final Steps

You might also like