<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aryaman.Tushar.Punjabi on Medium]]></title>
        <description><![CDATA[Stories by Aryaman.Tushar.Punjabi on Medium]]></description>
        <link>https://medium.com/@aryamanpunjabi3670?source=rss-b82b3f72f847------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0E3QldbT92NYeYCYAGusCA.jpeg</url>
            <title>Stories by Aryaman.Tushar.Punjabi on Medium</title>
            <link>https://medium.com/@aryamanpunjabi3670?source=rss-b82b3f72f847------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:44:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aryamanpunjabi3670/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Day 6 — Deploying Containers]]></title>
            <link>https://medium.com/@aryamanpunjabi3670/day-6-deploying-containers-9760de12e7ee?source=rss-b82b3f72f847------2</link>
            <guid isPermaLink="false">https://medium.com/p/9760de12e7ee</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[devopsdays]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aryaman.Tushar.Punjabi]]></dc:creator>
            <pubDate>Mon, 10 Jul 2023 10:52:18 GMT</pubDate>
            <atom:updated>2023-07-10T10:52:18.419Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day 6 — Deploying Containers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AV3uuD-WifbV3KWcAQtlmw.jpeg" /><figcaption>image source : <a href="https://www.infoworld.com/">https://www.infoworld.com</a></figcaption></figure><p>Deploying Docker containers involves several key steps to create and run applications efficiently. Here’s an overview of the process:</p><ol><li><strong>Containerization : </strong>Containerization is a technique in software development and deployment that involves encapsulating an application along with its dependencies, libraries, and configuration settings into a self-contained unit called a container</li><li><strong>Building Docker Images</strong>: To create a Docker image, you’ll need to write a Dockerfile, which is a text file that defines the instructions for building the image.</li><li><strong>Registry and Image Distribution</strong>: Docker images can be stored in a Docker registry, which acts as a centralized repository for sharing and distributing images.</li><li><strong>Container Orchestration</strong>: To deploy Docker containers at scale and manage their lifecycle, you can utilize container orchestration platforms like Docker Swarm or Kubernetes.</li><li><strong>Container Deployment</strong>: Once you have your container orchestration platform set up, you can deploy your Docker containers. This typically involves creating a deployment configuration file that specifies the desired state of your application, including the number of replicas, networking, storage, and other resources required. You can use the platform’s command-line tools or declarative configuration files (such as YAML) to create and apply the deployment.</li><li><strong>Monitoring and Scaling</strong>: After deploying your containers, it’s important to monitor their performance and health. Docker and container orchestration platforms provide built-in monitoring tools and metrics that can help you track resource usage, container status, and application performance</li><li><strong>Continuous Integration/Continuous Deployment (CI/CD)</strong>: To streamline the deployment process, you can integrate Docker into your CI/CD pipeline. By automating the building, testing, and deployment of Docker images, you can ensure that your applications are consistently built, validated, and deployed across different environments. Tools like Jenkins, GitLab CI/CD, or Travis CI can be used to automate these processes.</li></ol><h3>Conclusion</h3><p>Overall, Docker simplifies the deployment of containers and brings numerous benefits such as application consistency, security, scalability, simplified management, and reduced deployment overhead.</p><p>Drop me a line in the comments if I’ve made any mistakes or can be helpful in anyway,Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9760de12e7ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DAY 5 — Docker Compose for Beginners: An Introduction to Containerizing Applications]]></title>
            <link>https://blog.devops.dev/day-5-docker-compose-for-beginners-an-introduction-to-containerizing-applications-60c7bcc6d978?source=rss-b82b3f72f847------2</link>
            <guid isPermaLink="false">https://medium.com/p/60c7bcc6d978</guid>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aryaman.Tushar.Punjabi]]></dc:creator>
            <pubDate>Fri, 07 Jul 2023 11:06:04 GMT</pubDate>
            <atom:updated>2023-07-12T12:38:31.840Z</atom:updated>
            <content:encoded><![CDATA[<h3>DAY 5 — Docker Compose for Beginners: An Introduction to Containerizing Applications</h3><figure><img alt="image source : https://quintagroup.com" src="https://cdn-images-1.medium.com/max/1024/1*2G5KOQVzqVIbxxxeKECZkA.jpeg" /></figure><h4><strong>What is Docker Compose ?</strong></h4><p>Docker Compose is a powerful tool for managing and executing complicated multi-container Docker applications.It allows you to run create,manage simple application Using a simple YAML file.</p><h4><strong>What is YAML ?</strong></h4><p>YAML stands for [<strong>Ain’t Markup Language</strong>] Its often used for configuration files ,data exchange between systems,and defining complex data structures.</p><h4>What is Use of Docker-Compose ?</h4><p>It allows you to define the services your application requires, the networks that connect them, and the volumes needed for data persistence.U can also define relationship between different services.</p><p>for example let’s say there are two service web and database ,Now “<strong>web</strong>” depends on “<strong>db</strong>”.</p><pre>version: &quot;3.9&quot;<br>services:<br>  web:<br>    image: nginx:latest<br>    ports:<br>      - &quot;80:80&quot;<br>    depends_on :<br>      - db<br>  db:<br>    image: mysql:latest<br>    environment:<br>      MYSQL_ROOT_PASSWORD: mysecretpassword<br>      MYSQL_DATABASE: wordpres<br>      </pre><p>so there will be “<strong>depends_on</strong>” directive indicates that the “<strong>web</strong>” service depends on the “<strong>db</strong>” service. This dependency ensures that the database container is started before the web server container.</p><h4>Benefits of Docker-Compose</h4><ol><li>It creates multiple containers on single host.</li><li>Fast and simple configuration.</li><li>Secure Internal Communication : Its create an extra security layer for compose file since the services cannot be accessed externally.</li><li>Efficient use of resources</li></ol><h4>Docker-Compose Useful commands</h4><ol><li><strong>docker-compose build</strong> : look for all services containing the <strong>build : </strong>statement in the docker-compose.yaml file and run a <strong>docker build</strong> for each one</li><li><strong>docker-compose up</strong> : It build, create, start, containers for a service which is mentioned in docker-compose.yaml file.</li><li><strong>docker-compose down</strong> : stop running containers.</li><li><strong>docker-compose ps</strong> : List the status of all containers.</li><li><strong>docker-compose logs</strong> : Display&#39;s logs of all containers.</li></ol><h3>Conclusion</h3><p>Drop me a line in the comments if I’ve made any mistakes or can be helpful in anyway,Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60c7bcc6d978" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/day-5-docker-compose-for-beginners-an-introduction-to-containerizing-applications-60c7bcc6d978">DAY 5 — Docker Compose for Beginners: An Introduction to Containerizing Applications</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 4 — Building Container images and pushing them to DockerHub]]></title>
            <link>https://medium.com/@aryamanpunjabi3670/day-4-building-container-images-and-pushing-them-to-dockerhub-152ff45d4f99?source=rss-b82b3f72f847------2</link>
            <guid isPermaLink="false">https://medium.com/p/152ff45d4f99</guid>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[dockerhub]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aryaman.Tushar.Punjabi]]></dc:creator>
            <pubDate>Thu, 06 Jul 2023 12:46:32 GMT</pubDate>
            <atom:updated>2023-07-06T12:46:32.095Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day 4 — Building Container images and pushing them to DockerHub</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eQqbqWJT2PYjKBqeVlwiDg.jpeg" /><figcaption>image source : <a href="https://youtu.be/EIHY_CY5J0k">https://youtu.be/EIHY_CY5J0k</a></figcaption></figure><p>Container images are self-contained units that contain all the necessary components to execute an application, such as the code, runtime environment, system tools, libraries, and configurations. Through the creation of customized images, it becomes possible to effortlessly deploy applications along with their dependencies on any platform that supports Docker.</p><h4><strong>Dockerfile :</strong></h4><blockquote><em>As we know,text file called a “Dockerfile” that contains commands for creating a Docker image.</em></blockquote><p>In the Dockerfile, every instruction contributes to the creation of a distinct layer within the image. This approach facilitates the monitoring of modifications and aids in reducing the overall size of the image. Presented below is a basic illustration of a Dockerfile.</p><h4><strong>FROM node:latest</strong></h4><h4><strong>WORKDIR /app</strong></h4><h4><strong>COPY package*.json ./</strong></h4><h4><strong>RUN npm install</strong></h4><h4><strong>COPY . .</strong></h4><h4><strong>EXPOSE 3000</strong></h4><h4><strong>CMD [ “node”, “app.js” ]</strong></h4><p>Once you have created the file you can run this file using command</p><h4><strong>docker build -t your_image_name . e.g docker build -t nodejs .</strong></h4><h3>Inspecting Images and Layers</h3><p>You can view your images : “<strong>docker images</strong>” It will show list of images.</p><p><strong>docker inspect your_image_name</strong> : To view the layers of image</p><h3>Pushing Images to a DockerHub</h3><ol><li>login to docker hub in console by using command</li></ol><p><strong>docker login</strong> : It will ask your username of docker hub and password ,after that your image is ready to push</p><p>2. <strong>docker tag your_image_name username/repository:tag</strong> :Tag your image with the registry URL e.g <strong>docker tag nodejs aryaman007/node:webserver</strong></p><p>3. <strong>docker push username/repository:tag</strong> : Push the tagged image to the registry. e.g <strong>docker push aryaman007/node:webserver</strong></p><h4><strong>Conclusion</strong></h4><p>Drop me a line in the comments if I’ve made any mistakes or can be helpful in anyway,Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=152ff45d4f99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 3 —  Creating Account on DockerHub and Using push,Pull in DockerHub]]></title>
            <link>https://medium.com/@aryamanpunjabi3670/day-3-creating-account-on-dockerhub-and-using-push-pull-in-dockerhub-92ebcc34cfa7?source=rss-b82b3f72f847------2</link>
            <guid isPermaLink="false">https://medium.com/p/92ebcc34cfa7</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[dockerhub]]></category>
            <dc:creator><![CDATA[Aryaman.Tushar.Punjabi]]></dc:creator>
            <pubDate>Wed, 05 Jul 2023 11:14:27 GMT</pubDate>
            <atom:updated>2023-07-05T11:14:27.476Z</atom:updated>
            <content:encoded><![CDATA[<h3>Day 3 — Creating Account on DockerHub and Using push,Pull in DockerHub</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_h6GapgifyBPEtOW0BIEjw.png" /><figcaption>image source : docker</figcaption></figure><p>DockerHub is a cloud-based registry service provided by Docker. It is the default public container registry where you can store, manage, and distribute your Docker images.</p><h3>Features of DockerHub :</h3><ol><li>Public and Private repositories : Store your images in Public or Private repositories</li><li>Automated Builds : Whenever you push code to the repository, DockerHub will automatically create a new image with the latest changes.</li><li>Webhooks : DockerHub allows you to configure webhooks to notify other applications or services when an image has been built or updated.</li><li>Organization and Teams : Make collaboration easy by creating organizations and teams to manage access to your images and repositories.</li><li>Official images : DockerHub provides a curated set of official images for popular software like MongoDB, Node.js, Redis, etc</li></ol><h4>Let&#39;s create a account</h4><ol><li>Go to official website <a href="https://hub.docker.com/">https://hub.docker.com/</a></li><li>Register with your proper user name and password.</li><li>Go to Explore and here u will see images which we can use as Third party images.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uk6U_8AfZ3cIHbcOE6rfVg.png" /></figure><p>Now, u can use commands like</p><p>e.g <strong>docker pull nginx</strong> : it pull nginx image from DockerHub</p><p>Now to Push images to your registry we have to first login into our dockerhub :</p><ol><li><strong>docker login</strong></li><li><strong>docker tag your_image your_username/your_repository:your_tag e.g docker tag nginx aryaman007/nginx:nginx_app</strong></li></ol><p>First it will ask for username and password and then it will be push to dockerhub.</p><p>To pull images from DockerHub, you can use the <strong>docker pull</strong> command:</p><p><strong>docker pull aryaman007/nginx:nginx_app</strong></p><h3>Conclusion</h3><p>I hope you’re now equipped with the knowledge you need to learn more about Docker</p><p>Drop me a line in the comments if I’ve made any mistakes or can be helpful in anyway,Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92ebcc34cfa7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DAY 2 — Data Persistence in Docker]]></title>
            <link>https://medium.com/@aryamanpunjabi3670/day-2-data-persistence-in-docker-89b39240327e?source=rss-b82b3f72f847------2</link>
            <guid isPermaLink="false">https://medium.com/p/89b39240327e</guid>
            <category><![CDATA[docker-volume]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[devops-practice]]></category>
            <dc:creator><![CDATA[Aryaman.Tushar.Punjabi]]></dc:creator>
            <pubDate>Tue, 04 Jul 2023 12:32:32 GMT</pubDate>
            <atom:updated>2023-07-05T11:13:08.732Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*5Qpq2ADsZiSIrIjebCcjaA.png" /><figcaption>img source: docker</figcaption></figure><p>Docker containers are designed to be lightweight, isolated units that encapsulate applications and their dependencies. By default, containers are ephemeral, meaning that any changes made to the container’s file system or data are not preserved once the container is stopped or terminated. To Overcome these problem we use “<em>DATA PERSISTENCE”</em></p><p>There are three methods where we can use:</p><ol><li>Docker Volume</li><li>Bind Mounts</li><li>Docker tmpfs(Temporary File System) Mounts</li></ol><h4><strong>Docker Volumes</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*AQo4wyBmGZ-7FHnJgk_Xiw.png" /><figcaption>image source : <a href="https://www.seekpng.com/">https://www.seekpng.com</a></figcaption></figure><p>Docker volumes are prefered way to presist(maintain something over time) data generated and utilized by docker container. It can be mounted on one or more containers and can be shared also. Volume is directory on host machine and Docker uses to store files/data/directories that increased container&#39;s lifecycle.</p><p><strong>To create volume use command:</strong></p><p><strong>docker volume create volume_name </strong>e.g docker volume create mysql_data</p><p>Once created, you can mount this volume into one or more containers to share and retain data across container</p><p>To use these volume we use <strong>— volume :</strong></p><p><strong>docker run — volume volume_name /path_to_be_mounted image_name e.g docker run — volume mysql /home/ec2-user/mysql mysql</strong></p><h4>Bind Mounts</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*y32BOTupbLDnxAvNFC70kQ.png" /><figcaption>image source : <a href="https://dominikbraun.io/">https://dominikbraun.io</a></figcaption></figure><p>Bind mounts allow you to map any directory on the host machine to a directory within the container. With bind mounts, data stored in the mapped directories will persist even if the container is terminated.</p><p><strong>To create Bind Mounts use — bind and type=bind</strong></p><p><strong>docker run — mount type=bind src=/host/path,dst=/container_path image_name</strong></p><p>e.g Lets create mkdir /host/path and we have index.html in /usr/share/nginx/html/ then run the container with bind mount docker run -d -p 8080:80 -v /host/data:/usr/share/nginx/html --name mynginx-container mynginx</p><p><strong>docker run -d -p 8080:80 -v /host/data:/usr/share/nginx/html — name nginx-container nginx</strong></p><p>These will bind the /host/data and /usr/share/nginx/html</p><h4>Docker tmpfs(Temporary File System) Mounts</h4><p>Data stored in tmpfs mounts is fast and secure but will be lost once the container is terminated.It is stored in System memory(RAM) instead of Disk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6_poBG8Kw4nDoGPTDDv-FQ.png" /><figcaption>image source : <a href="https://jfrog.com/">https://jfrog.com</a></figcaption></figure><p><strong>To use tmpfs mount we use — tmpfs :</strong></p><p><strong>docker run — tmpfs /container_path image_name e.g docker run -d — tmpfs /usr/share/nginx/html nginx</strong></p><p>When we run this command any data written to this directory within the container will be stored in memory.</p><h3>Conclusion</h3><p>I hope you’re now equipped with the knowledge you need to learn more about Docker</p><p>Drop me a line in the comments if I’ve made any mistakes or can be helpful in anyway,Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89b39240327e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 1 — Getting started with Docker]]></title>
            <link>https://medium.com/@aryamanpunjabi3670/day-1-getting-started-with-docker-b269a857e6d8?source=rss-b82b3f72f847------2</link>
            <guid isPermaLink="false">https://medium.com/p/b269a857e6d8</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <category><![CDATA[learndocker]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Aryaman.Tushar.Punjabi]]></dc:creator>
            <pubDate>Mon, 03 Jul 2023 11:55:01 GMT</pubDate>
            <atom:updated>2023-07-11T11:43:40.613Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Day 1 — Getting started with Docker</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KAsmboFrvXCM4P3vlTZdWA.png" /></figure><h3><strong>What is Docker ?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*5Qpq2ADsZiSIrIjebCcjaA.png" /></figure><p>Docker is a platform that simplifies the process of building, packaging, and deploying applications in lightweight, portable containers.</p><h3><strong>Docker Components</strong></h3><p><strong>Dockerfile:</strong> A text file called a “Dockerfile” that contains commands for creating a Docker image.</p><p><strong>Dockerfile Includes:</strong></p><ol><li>FROM base-image e.g nginx,MYSQL,Ubuntu</li><li>LABEL key=value e.g container=application</li><li>RUN command e.g apk update</li><li>COPY source destination e.g index.html /var/www/html/</li><li>ADD source destination e.g /source/file/path destination/path</li><li>WORKDIR directory e.g /root/</li><li>ENTRYPOINT cmd e.g [“ wget ”]</li><li>CMD arguments e.g [“ python ”,” app.py ”]</li></ol><p><strong>Docker Image: </strong>A container snapshot produced by a Dockerfile is known as a Docker Image. A registry, such as Docker Hub,images that may be retrieved from or put into it.</p><p><strong>Docker Container: </strong>A running Instance of Docker image.</p><h3><strong>What is Container ?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*cQ9OEXWJrpQrDoerH7BU8w.jpeg" /></figure><p>A container is a lightweight, standalone, and executable software package that includes all the <strong><em>dependencies (libraries, binaries, and configuration files) required to run an application.</em></strong> Containers isolate applications from their environment, ensuring they work consistently across different systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*JIHr1oKPsMVPo_OwpliWnQ.jpeg" /><figcaption>Container diagram</figcaption></figure><p>Containers are a way to run multiple applications on a single server without the overhead of a hypervisor. Each container runs on top of a container engine, which is a piece of software that emulates the operating system of a computer. The container engine allows you to run multiple applications on a single server, and it also provides isolation between applications running on different containers.</p><h3><strong>Docker Setup in EC2</strong></h3><p>Allows access to port 80 (HTTP) from anywhere in security groups of AWS</p><ol><li>Update package manager : sudo dnf update -y</li><li>Install docker : sudo dnf install docker -y</li><li>Docker start: sudo service docker start</li><li>Docker stop: sudo service docker stop</li></ol><h3>Docker Commands</h3><p>Below are some essential Docker commands:</p><ul><li>docker pull image_name: It will pull a image form registry, like Docker Hub. e.g Docker pull nginx</li><li>docker build -t image_name path: Build an image from a Dockerfile, where path is the directory containing the Dockerfile. e.g docker build -t mysql /ec2-user/mysql/</li><li>docker images : List all images available on your local machine.</li><li>docker run -it -d -p hostPort:containerPort — name container_name image_name :Run a container from an image, mapping host ports to container ports. e.g docker run -it -d -p80:80 — name wordpress wordpress</li><li>docker ps -a : List all running containers and stopped containers.</li><li>docker stop container_id/container_name: Stop a running container. e.g docker stop wordpress</li><li>docker rm container_name/container_id : Remove a stopped container. e.g docker rm wordpress</li><li>docker rmi image_name: Remove an image from your local machine. e.g docker rmi wordpress</li><li>docker rmi $(docker images -q): Remove all images at once.</li><li>docker rm $(docker ps -aq): Remove all containers at once.</li></ul><h3>Docker Cheat Sheet — 36 Docker CLI Commands</h3><p><a href="https://spacelift.io/blog/docker-commands-cheat-sheet">https://spacelift.io/blog/docker-commands-cheat-sheet</a> Refer to this link for Docker CLI commands</p><h3>Conclusion</h3><p>I hope you’re now equipped with the knowledge you need to learn more about Docker</p><p>Drop me a line in the comments if I’ve made any mistakes or can be helpful in anyway,Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b269a857e6d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Ansible, deploy LAMP on a different EC2 Instance in AWS]]></title>
            <link>https://medium.com/@aryamanpunjabi3670/using-ansible-deploy-lamp-on-a-different-ec2-instance-in-aws-2dd0649965a0?source=rss-b82b3f72f847------2</link>
            <guid isPermaLink="false">https://medium.com/p/2dd0649965a0</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Aryaman.Tushar.Punjabi]]></dc:creator>
            <pubDate>Fri, 12 May 2023 04:52:59 GMT</pubDate>
            <atom:updated>2023-05-12T04:52:59.668Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*HLy9U7J5GEIEYQb4gaVYlw.png" /></figure><h3><strong>What is ansible ?</strong></h3><p>A strong open-source project is Ansible. It has the most straightforward architecture and is versatile and simple to use. Ansible playbooks don’t need to be programmer-savvy, and no software has to be installed on the nodes. Above all, it has a tonne of great skills that make it possible to automate tasks and develop scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1_FrY49QGm-JTAn3pLwaUQ.jpeg" /><figcaption>Image copyrights: <a href="https://www.cloudsigma.com/">https://www.cloudsigma.com</a></figcaption></figure><p><strong>Step-1: Create Inventory file</strong></p><p>Inventory file : The simplest inventory is <em>a single file with a list of hosts and groups</em>.</p><ol><li>Create directory playbook</li><li>Inside playbook create file <strong><em>inventory.ini</em></strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*dIBbjpwn87urEYqp3Nfe-Q.png" /></figure><p><strong>Step -2: Let’s get our server’s private ip address, where we want to deploy our lamp server, after creating the inventory file.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bzRC_N-X7HmcYg49RwOjtQ.png" /></figure><p>Variable should be added in [variablename].After that enter your EC2-Instance’s private IP address (Ubuntu) below.</p><p>ansible_user=ubuntu</p><p>ansible_ssh_private_key_file: /add path to your private key file.</p><p>ansible_ssh_common_args:</p><h3><strong>Now why to write ansible_user ,ansible_ssh_private_ key_file and ansible_ssh_common_args ?</strong></h3><p><strong>ansible_user</strong>: This parameter is used to specify the SSH username that Ansible should use when connecting to the remote hosts.</p><p><strong>ansible_ssh_private_key_file:</strong> This parameter is used to specify the path to the private key file that Ansible should use for SSH authentication.</p><p><strong>ansible_ssh_common_args:</strong> This parameter allows you to specify additional SSH command-line options that should be used for all SSH connections made by Ansible. This is useful for setting options like SSH port number or disabling strict host key checking.</p><p>Ping it and check if deployment server is reachable or not by using command</p><p><strong><em>ansible myserver -m ping -i tierinventory.ini</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*gwtrSDdxsXw_bfBXukxg7w.png" /><figcaption><strong>OUTPUT AFTER PING</strong></figcaption></figure><p>Save the inventory.ini file.</p><p><strong>Step-3: Now create a file called <em>LAMP.yaml</em>.</strong></p><p><em>Refer Github repository for code :</em><a href="https://github.com/ARYAMANPUNJABI/Ansible.git">https://github.com/ARYAMANPUNJABI/Ansible.git</a></p><p><strong>Step-4: Now run LAMP.yaml using command</strong></p><p><strong>ansible-playbook -i inventory.ini LAMP.yaml</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hksdWWCUVhjPG4M4ZXtuXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*0FezTjdXYe1AIqAWTsaScA.gif" /><figcaption><strong>Success of LAMP Deployment</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2dd0649965a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to launch EC2 Instance in Amazon Web Services (AWS)]]></title>
            <link>https://medium.com/@aryamanpunjabi3670/how-to-launch-ec2-instance-in-amazon-web-services-aws-80be27cc654d?source=rss-b82b3f72f847------2</link>
            <guid isPermaLink="false">https://medium.com/p/80be27cc654d</guid>
            <category><![CDATA[ec2-instance]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <dc:creator><![CDATA[Aryaman.Tushar.Punjabi]]></dc:creator>
            <pubDate>Thu, 19 Jan 2023 17:46:37 GMT</pubDate>
            <atom:updated>2023-01-19T17:46:37.020Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*hHC80pFyQx9Nvy1z-kt42g.png" /></figure><p><strong>Step 1 -&gt; Login to your AWS account as root user.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KGKvR40RlHKT5-_m-iM1QA.png" /><figcaption><strong>Enter your username and password.</strong></figcaption></figure><p><strong>Step 2 -&gt; On left side there are list of services ,Click on Instance then click on</strong> <strong><em>Lunch Instance.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rfJxIShghMDF53CVYl0jGQ.png" /><figcaption><strong>Enter name of server e.g MyfirstServer (optional).</strong></figcaption></figure><p><strong>Step 3 -&gt; Select Amazon Linux.</strong></p><p><strong>Step 4 -&gt; Select Instance type as t2.micro.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*dXiiCqdYXaH9e66IXsSs8Q.png" /><figcaption><strong>With On-Demand Instance prices starting at $0.0058 per hour, T2 instances are one of the lowest-cost Amazon EC2 instance options and are ideal for a variety of general-purpose applications like micro-services, low-latency interactive applications, small and medium databases, virtual desktops, development, build and stage environments, code repositories, and product prototypes.</strong></figcaption></figure><p><strong>Step 5 -&gt; Key pair login.</strong></p><ol><li>Click on Create new key pair.</li></ol><p><strong><em>Keypair</em></strong> : <strong>set of security credentials that you use to prove your identity when connecting to an Amazon EC2 instance.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*ySDhEOzaKbMtsHJISjldYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*cVj9VrUFJSpkAfchGjdYnQ.png" /><figcaption><strong>Enter your key pair name e.g Linux</strong></figcaption></figure><p>WHY .ppk ?</p><p>When we want to connect from WindowsOS-Linux we use .ppk file and when we want to connect from linux-linux we use .pem file</p><p><strong>Step 6 -&gt; Click on Launch Instance</strong></p><p><strong>Step 7. To connect Instance click on running Instance -&gt; Click Connect and U will be redirected to next page with linux interface.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80be27cc654d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>