<?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 Rohan Bansal on Medium]]></title>
        <description><![CDATA[Stories by Rohan Bansal on Medium]]></description>
        <link>https://medium.com/@rohan2567?source=rss-79ff9f55e561------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PE9R5N786UtClsWW-OaPZg.jpeg</url>
            <title>Stories by Rohan Bansal on Medium</title>
            <link>https://medium.com/@rohan2567?source=rss-79ff9f55e561------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 01:11:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rohan2567/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[Understanding GitHub Actions]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://rohan2567.medium.com/understanding-github-actions-fc57171dfed8?source=rss-79ff9f55e561------2"><img src="https://cdn-images-1.medium.com/max/1498/1*3R65iCWao7plPtPPtqlMMQ.png" width="1498"></a></p><p class="medium-feed-snippet">Imagine every time you finish cooking a new dish, you had to personally drive it to every restaurant that wanted to taste-test it&#x2026;</p><p class="medium-feed-link"><a href="https://rohan2567.medium.com/understanding-github-actions-fc57171dfed8?source=rss-79ff9f55e561------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://rohan2567.medium.com/understanding-github-actions-fc57171dfed8?source=rss-79ff9f55e561------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc57171dfed8</guid>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[continous-integration]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Rohan Bansal]]></dc:creator>
            <pubDate>Sat, 08 Aug 2026 08:05:32 GMT</pubDate>
            <atom:updated>2026-08-08T08:05:32.036Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Docker — Understanding Basics]]></title>
            <link>https://rohan2567.medium.com/docker-understanding-basics-18b84a7decc8?source=rss-79ff9f55e561------2</link>
            <guid isPermaLink="false">https://medium.com/p/18b84a7decc8</guid>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <category><![CDATA[docker-image]]></category>
            <dc:creator><![CDATA[Rohan Bansal]]></dc:creator>
            <pubDate>Sun, 02 May 2021 12:30:32 GMT</pubDate>
            <atom:updated>2021-05-02T12:30:32.204Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker — Understanding Basics</h3><blockquote>Lets talk about the most common problem the industries were facing before the terms containerization and docker.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*SDJYvKvgFfGY2TLwt7OsIw.png" /></figure><p>Here we can see a developer has built an application that works fine in his environment but when it reaches production, there were certain issues with that application which happens because of the difference in the computing environments between Dev and prod.</p><p>This is where containerization and Docker come in. Docker is a containerization platform that solves the libraries and dependency issues once and for all. As the tester and developer now have the same system running on Docker container, they both are able to run the application in the Docker environment without having to face differences in dependencies issues as before.</p><p>In simple terms, you can now wrap up all the pieces your software needs in a single unit called a docker image, then ship or share this image with anyone. And, as long as the recipient has Docker, they will be able to run or test your project. Gone are the days of, “But it worked on my machine!”</p><p><strong>Container</strong> refers to a lightweight, stand-alone, executable package of a piece of software that allows a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package. By doing so, thanks to the container, the developer can rest assured that the application will run on any other Linux machine regardless of any customized settings that the machine might have that could differ from the machine used for writing and testing the code.</p><p>In a way, Docker is a bit like a virtual machine. But unlike a virtual machine, rather than creating a whole virtual operating system, Docker allows applications to use the same Linux kernel as the system that they’re running on and only requires applications to be shipped with things not already running on the host computer. Also, containers are created and booted in seconds, use fewer resources while a VM takes time to boot and use more resources.</p><h4>Docker Architecture</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*9VQzFbn0E1QDhJP4fWVZSg.png" /><figcaption>Docker Architecture</figcaption></figure><ul><li>The server is the physical server that is used to host multiple virtual machines. So this layer remains the same.</li><li>The Host OS is the base machine such as Linux or Windows. So this layer remains the same.</li><li>Now comes the new generation which is the Docker engine. This is used to run the operating system which earlier used to be virtual machines as Docker containers.</li><li>All of the Apps now run as Docker containers.</li></ul><blockquote>The clear advantage in this architecture is that you don’t need to have extra hardware for Guest OS. Everything works as Docker containers.</blockquote><p>Now, A developer can create a code, without having to worry about the packing of the application and uploading it to other environments within a short duration, and finally, delivering a properly working application that works fine on all the machines.</p><h4>Docker Registry :</h4><p>Is a repository for Docker images. Using the Docker registry, you can build and share images with your team. A registry can be public or private. Docker Inc provides a hosted registry service called Docker Hub. It allows you to upload and download images from a central location. If your repository is public, all your images can be accessed by other Docker hub users. You can also create a private registry in Docker Hub, Google Cloud Registry, Amazon Registry, etc. Docker hub acts like git, where you can build your images locally on your laptop, commit it, and then can be pushed to the Docker hub.</p><h4>Some Basic Docker Commands :</h4><ol><li><em>docker version</em>: Shows docker version</li><li><em>docker images</em>: list all images</li><li><em>docker ps</em>: shows all running containers</li><li><em>docker ps</em> -a: shows all containers, running + exited</li><li><em>docker ps -aq</em>: shows the id of all containers</li><li><em>docker search &lt;image_id&gt;</em> : search images</li><li><em>docker rm &lt;container_id&gt;</em> : removes a container</li><li><em>docker rmi &lt;id&gt;</em> : removes an image</li><li><em>docker pull ubuntu:20.04</em>: pulls an ubuntu image from docker hub of version 20.04</li><li><em>docker login</em>: login to docker hub</li><li><em>docker push</em>: pushes images from local to docker hub</li><li><em>docker stats &lt;id&gt;</em> : displays resource utilization of container</li><li><em>docker logs &lt;id&gt;</em> : Generate logs of container</li><li><em>docker run &lt;image&gt;</em>: pulls an image from docker hub and runs as a container</li><li><em>docker tag</em>: provide a tag to the docker image</li></ol><h4>Creating and building images using a Dockerfile :</h4><blockquote>A Dockerfile is a text file that defines a Docker image.</blockquote><p>We can use a Dockerfile to create our own custom Docker image, in other words, to define our custom environment to be used in a Docker container. The Dockerfile acts like a recipe for your image, what OS you need, what libraries to install, what variables to use, and so on.</p><h4><strong>The workflow to follow using Dockerfile :</strong></h4><ol><li>Create the Dockerfile and define the steps that build up your images</li><li>Execute the docker build command which will build a Docker image from your Dockerfile.</li><li>Use this image to start containers with the docker run command</li></ol><h4>How to Write a Dockerfile?</h4><blockquote>Every Dockerfile must start with the FROM instruction.</blockquote><p>The idea behind this is that you need a starting point to build your image. The image you start from is called the base image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*3TzGcbLgW30NUibYjkAWJA.png" /><figcaption>Dockerfile Contents</figcaption></figure><p>The next step is to build an image using the Dockerfile using docker buildand then running a container using docker run.</p><h4>Wrapping Up :</h4><p>I hope you’re now equipped with the knowledge you need to learn about Docker and maybe even use it in a project one day.</p><p>As always, drop me a line in the comments if I’ve made any mistakes or can be helpful in any way! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18b84a7decc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction To Configuration Management Using CHEF]]></title>
            <link>https://rohan2567.medium.com/introduction-to-configuration-management-using-chef-ae135b4fa8a0?source=rss-79ff9f55e561------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae135b4fa8a0</guid>
            <category><![CDATA[chefs]]></category>
            <category><![CDATA[configuration-management]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Rohan Bansal]]></dc:creator>
            <pubDate>Sun, 02 May 2021 05:15:17 GMT</pubDate>
            <atom:updated>2021-05-02T05:15:17.537Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s microservices-and-continuous-integration driven world, where apps run in hybrid cloud environments and users engage with them on any device and on any underlying operating system, applications are increasingly complex.</p><p>With so much on the line, it’s more important than ever for organizations to do everything within their power to make sure their systems are operable and available around the clock and around the world.</p><p>For example, you want to deploy or update an application, an operating system, or software on multiple systems in one day. There is no restriction on using manual processes, although the possibility of multiple errors still exists. Other possible issues may include the crashing of software during updates without any chance of reverting back to the previous version. In such cases, configuration management works effectively.</p><p>Configuration management tools such as Chef can carry out the work of many system admins and developers with ease and effectiveness.</p><h4>Why Use Chef?</h4><ol><li>Chef uses a pull mechanism in which the nodes are dynamically updated with the configurations that are present in the server.</li><li>Chef can easily manage a large number of servers with fewer employees.</li><li>It allows continuity in the deployment process from building to testing, until the end.</li><li>It can be managed using different Operating Systems like Linux, FreeBSD, and Windows.</li><li>It can be integrated with several major cloud service providers like Azure, AWS, GCP, etc.</li><li>A single chef-server may be used as a center for all policy deployment.</li><li>Chef is a reliable and stable tool for large deployments.</li><li>It also helps in managing the risk at all stages of deployment.</li></ol><h4>Some Terms related to CHEF :</h4><ol><li>Node: The machine in which recipes and roles are applied during the Chef client run.</li><li>Recipe: The fundamental part of Chef, it is a collection of resources that are executed in the order to configure a node.</li><li>Cookbook: Contain all resources and instructions that you need to configure your nodes. These can be reused across different run lists. Cookbooks typically consist of many recipes.</li><li>Data Bag: Contain globally available data used by nodes and roles.</li><li>Resource: Users, packages, files, or directories.</li><li>Attributes: Represent node settings, for example, hostname, versions of programming languages to install, database server, etc.</li><li>Chef-Client: Does all work on behalf of a node, where it executes recipes to configure and install the software.</li><li>Chef Solo: A command-line tool that allows you to run Chef cookbooks without an actual Chef server. It is an open-source version of the Chef client.</li><li>Knife: A tool used by engineers to upload configuration changes to the Chef server.</li><li>Ohai: A tool for collecting data about your operating system, used to provide system attributes used by Chef client during Chef run.</li><li>Role: A way to group similar features of nodes, for easier management.</li></ol><h4>Chef Architecture</h4><p>The Chef architecture consists of three core components that interact with one another: <em>Chef server</em>, actual servers called <em>nodes</em> and <em>Chef workstation</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*KBNRBnazVBST0JvLwnuZtg.png" /><figcaption>Chef-Architecture</figcaption></figure><h4>Chef-Workstation</h4><p>A workstation on Chef is the computer that runs Chef Workstation. The Chef Workstation helps in authoring cookbooks, interactive with nodes, and the Chef Infra Server. The workstations help users in addressing the following tasks,</p><ul><li>Development and testing of cookbooks and recipes.</li><li>Testing the Chef code.</li><li>Maintaining synchronization of the Chef repository with version source control.</li><li>Interaction with nodes according to requirements such as conducting a bootstrap operation when required.</li><li>Configuration of organizational policy alongside the definition of roles and environments and ensuring the storage of critical data in data bags.</li></ul><p>Chef Workstation provides the benefits of easy installation, along with a diverse range of features. Chef Workstation provides ad-hoc remote execution, cookbook creation tools, reliable dependency, and testing software, remote scanning, and configuration tasks.</p><h4>Chef-Server</h4><p>The Chef server stores ,manage, and provides configuration data to all other Chef components.</p><p>From Chef-Workstation, one can push all the cookbooks and any new node can communicate with the Chef-server and the chef-client installed on the node will help to run all the cookbooks and roles to install and configure the required packages.</p><h4><strong>Wrapping Up :</strong></h4><p>By using configuration management tools like Chef to manage your infrastructure you can take the best practices from application development and apply them to the development and scaling of your server infrastructure.</p><p>The stability, maturity, and reliability of Chef for large-scale deployments in public and private environments are promising features that Chef provides.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae135b4fa8a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction To Terraform]]></title>
            <link>https://rohan2567.medium.com/introduction-to-terraform-df5f4d4f7658?source=rss-79ff9f55e561------2</link>
            <guid isPermaLink="false">https://medium.com/p/df5f4d4f7658</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <dc:creator><![CDATA[Rohan Bansal]]></dc:creator>
            <pubDate>Sat, 01 May 2021 15:52:03 GMT</pubDate>
            <atom:updated>2021-05-01T15:52:03.953Z</atom:updated>
            <content:encoded><![CDATA[<p>Let&#39;s consider a scenario, where our client is using Cloud, be it AWS/Azure/GCP for the Project.</p><p>There are lots of services provided by these Cloud Providers which a client can use to meet its requirements like storage options, virtual machines, monitoring solutions, etc.</p><p>But what if the client needs a technique and a way in which the infrastructure could be spin up with a bit of automation without eventually logging into the User Interface of the Cloud Provider. What if a person can codify the infrastructure to be built using the command line without any manual intervention.</p><p><strong>Terraform</strong> is a really handy tech <strong>tool</strong> that lets you build, change, and version infrastructure safely and efficiently. With Terraform all you have to do is built the code once, and the code can be used a number of times with the requirements. Terraform is our tool of choice to manage the entire lifecycle of infrastructure using <strong>Infra As A Code. </strong>That means declaring infrastructure components in configuration files that are then used by Terraform to provision, adjust and tear down infrastructure in various cloud providers.</p><p>For example, say you are working in Azure and would like to spin up several virtual machines of specific types. You would define the type and number of instances in a configuration file, and Terraform would use that to communicate with the Azure API to create those instances. The same file could then be used to adjust the configuration, for example increasing or decreasing the number of instances.</p><h4>What exactly to use Terraform?</h4><ol><li>Terraform lets you define infrastructure in config/code and will enable you to rebuild/change and track changes to infrastructure with ease. which helps to provide a high-level description of infrastructure.</li><li>Terraform enables you to implement all kinds of coding principles like having your code in source control, the ability to write automated tests, etc</li><li>Terraform has a simple modular syntax and supports multi-cloud infrastructure configuration.</li><li>It uses a high-level declarative style language called HashiCorp Configuration Language (HCL) for defining infrastructure in ‘simple for humans to read’ configuration files. Organizations can use public templates and can have a unique private registry.</li><li>Terraform has a lively community and is open-source; there is a massive community developing around this tool. Many people are already using it, and it’s easier to find people who know how to use it, plugins, extensions, professional support, etc.</li><li>Terraform allows you to see and validate what exactly you will be building with the script you code. This means it is easier to test, manage and deploy with Zero errors.</li><li>Let&#39;s consider a scenario, Where a person accidentally deletes a running resource from the cloud. Here terraform helps us to manage the state of any resource we provisioned where we can deploy the same resource with the exact configurations using the State file generated by Terraform.</li></ol><h4>Life Cycle of Terraform Workflow</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*OgSjkoJRrt3VV67ObDNUrw.png" /><figcaption>Understanding Terraform Workflow</figcaption></figure><p><strong>Stage 1 → Code :</strong></p><p>As a developer, you start writing the code, coding the proper configrations required to build the resource. Using variables wherever required, Calling the provider to be used.</p><p>Code part mainly evolves around 4 files :</p><ol><li>main.tf→ The actual resource that is required to be deployed is written here. For Example: if we want to create a Resource Group in azure, we write the code that calls the resource group from the azure provider.</li><li>variables.tf →We use variables when we do not want to hard code any particular resource value. For Example, Instead of giving the name of the resource group in the main file, we can use a variable and use it in a separate file.</li><li>provider.tf → The provider we use and the secrets that would be used to connect with the API of the cloud are written here. Example: In the case of Azure, We use client_id, client_secret, subscription_id, and tenant_id.</li><li>terraform.tfvars →Any variable we use in our code can be assigned a value in this file.</li></ol><p><strong>Stage 2 → Init</strong></p><p>The ‘terraform init’ step analyses the code, figures out the provider, and downloads all the plugins (code) needed by the provider. Provider plugins are responsible for interacting over APIs provided by the cloud platforms using the corresponding CLI tools. They are responsible for the life cycle of the resource, i.e., create, read, update and delete.</p><p><strong>Stage 3 →Validate</strong></p><p>It validates and checks the syntax we have used in our code meets the requirements in Terraform.</p><p><strong>Stage 4 →Plan</strong></p><p>Generates and shows us the execution plan according to our code. It checks the previous state we used and then shows us the changed execution plan.</p><p><strong>Stage 5 →Apply</strong></p><p>The ‘terraform apply’ executes the exact same provisioning plan defined in the last step, after being reviewed. Terraform transforms configuration files (.tf) based on appropriate API calls to a cloud provider(s) automating resource creation (using the provider’s CLI) seamlessly.</p><p><strong>Stage 6 →Destroy</strong></p><p>After resources are created, there may be a need to terminate them. As Terraform tracks all the resources, terminating them is also simple. All that is needed is to run ‘terraform destroy. Again, Terraform will evaluate the changes and execute them after you give permission.</p><p>And so on…In order to build the same resource again, we can use the state file which will have the exact configuration of the resource we deleted.</p><p>That&#39;s where Terraform can be a Gem for A DevOps Guy !!….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df5f4d4f7658" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>