DevOps Classroom notes 22/Jun/2025

Microservices

  • Microservice is a smaller and indivudually runnable service which can be deployed independently
    Preview

Next Steps

  1. containerizing your application.
  2. understanding
  3. network
  4. storage
  5. resources
  6. best practices
  7. Using orchestration to deploy microservices and run them effeciently

Setup

  • We will setup the docker on Linux Machine
  • SSH into linux machine (ubuntu)
curl -fsSL https://get.docker.com -o install-docker.sh
sh install-docker.sh
  • once the docker installed add your current user to docker group
sudo usermod -aG docker <user-name>
# sudo usermod -aG docker ubuntu
  • After this exit, relogin and execute docker info
    Preview

Containerizing applications

I want to run a simple website

  • Our webdesigner has created the following design Refer Here
  • Findout how to deploy this to a server.
  • To deploy a website, we need webserver
  • we have two popular flavors
    • apache
    • nginx
  • Manual steps:
sudo apt update
sudo apt install nginx unzip -y
wget https://templatemo.com/tm-zip-files-2020/templatemo_591_villa_agency.zip
unzip templatemo_591_villa_agency.zip
cd templatemo_591_villa_agency/
sudo cp  --recursive . /var/www/html/
  • Access your server by ip http://<server-ip>
    Preview
  • What is needed to run this application

    • nginx
    • website
  • How to access your application http://<ipaddress>:80
  • Containerizing application can be done in two ways
    • creating a container and manually deploying application (not recommended)
    • Write Dockerfile
  • Option 1: Create image manually
    • Create a container in interactive mode and run necessary commands to deploy your application

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube