DevOps Practical Task Submission Document
To perform Git operations, deploy a simple web page using Nginx, connect GitHub–
Jenkins–Server, and build a CI/CD pipeline for automated deployment.
Task 1: Create Git Local Repository and Push/Pull Code from GitHub
Instructions:
1. Create a local Git repository.
2. Add and commit files (e.g., [Link]).
3. Create a remote repository on GitHub.
4. Push local commits to GitHub.
5. Pull changes from GitHub after updating files remotely.
Attach Screenshots:
Screenshot 1: Git initialization
Screenshot 2: Commit and push commands
Screenshot 3: GitHub repository showing the uploaded file
Screenshot 4: Pull operation result
Task 2: Deploy a Simple Application using Nginx Server
Instructions:
1. Install Nginx on your Linux VM.
2. Replace the default [Link] file with your own web page.
3. Restart Nginx and test the site using your browser’s IP address.
Attach Screenshots:
Screenshot 1: Nginx installation
Screenshot 2: Custom [Link] file
Screenshot 3: Browser view showing your deployed web page
Task 3: Connect GitHub, Jenkins, and Server
Instructions:
1. Install and configure Jenkins.
2. Connect Jenkins to your GitHub repository using credentials or tokens.
3. Configure Jenkins to access your server (via SSH or credentials).
Attach Screenshots:
Screenshot 1: Jenkins connected to GitHub
Screenshot 2: Jenkins credentials configuration
Screenshot 3: Successful connection test with server
Task 4: Build CI/CD Pipeline using Jenkins
Instructions:
1. Create a new Jenkins Pipeline project.
2. Write a Jenkinsfile or use the pipeline editor to automate:
o Pull code from GitHub
o Deploy automatically to Nginx web server
3. Commit and push changes in GitHub — verify automatic deployment.
Attach Screenshots:
Screenshot 1: Jenkins pipeline configuration
Screenshot 2: Build success log
Screenshot 3: Updated web page visible in browser after auto-deployment