<?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 Shawaiz Ahmed on Medium]]></title>
        <description><![CDATA[Stories by Shawaiz Ahmed on Medium]]></description>
        <link>https://medium.com/@i180826?source=rss-e7ce3845c2a8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KbhuzX7Q-7lXZC2P</url>
            <title>Stories by Shawaiz Ahmed on Medium</title>
            <link>https://medium.com/@i180826?source=rss-e7ce3845c2a8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:15:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@i180826/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[DevOps is a culture, not a role!]]></title>
            <link>https://medium.com/@i180826/devops-is-a-culture-not-a-role-fbfd690a9eec?source=rss-e7ce3845c2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbfd690a9eec</guid>
            <dc:creator><![CDATA[Shawaiz Ahmed]]></dc:creator>
            <pubDate>Sun, 04 Jun 2023 14:07:35 GMT</pubDate>
            <atom:updated>2023-06-04T14:11:02.075Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*WIW5ItYU1wlNfShyy9TujA.jpeg" /></figure><p>In the fast-paced world of software development and operations, DevOps has emerged as a transformative culture that transcends the boundaries of traditional roles and establishes a collaborative environment for continuous delivery. In this blog post, we delve into the essence of DevOps as a culture, exploring its core principles, values, and the impact it has on organizational success. Join us on this journey as we uncover the key elements that make DevOps a driving force in today’s technology landscape.</p><ol><li><strong>Collaboration and Communication:</strong> At the heart of DevOps lies a strong emphasis on collaboration and effective communication. Silos between development, operations, and other teams are dismantled, giving way to cross-functional cooperation. By breaking down barriers and fostering open lines of communication, DevOps creates an environment where teams work hand-in-hand, share knowledge, and align their efforts to achieve common objectives. The result is improved efficiency, reduced bottlenecks, and enhanced collective problem-solving capabilities.</li><li><strong>Shared Responsibility:</strong> DevOps instills a shared responsibility mindset, promoting the belief that everyone involved in the software delivery process is accountable for its success. Developers, operations personnel, quality assurance teams, and other stakeholders work collaboratively to ensure that the entire lifecycle, from development to deployment and maintenance, is seamless. This culture of shared responsibility cultivates a sense of ownership and motivates individuals to contribute their best, leading to higher-quality deliverables and improved overall performance.</li><li><strong>Continuous Learning and Improvement:</strong> DevOps thrives on a culture of continuous learning and improvement. It encourages teams to experiment, innovate, and embrace a growth mindset. Failures are viewed as learning opportunities rather than reasons for blame, fostering an environment where individuals are empowered to take risks and learn from them. Through feedback loops, retrospectives, and continuous improvement practices, DevOps organizations continuously refine their processes, optimize workflows, and adapt to changing requirements, ensuring a cycle of growth and success.</li><li><strong>Automation and Tooling:</strong> While DevOps is primarily about culture, automation and tooling play a vital role in enabling collaboration and efficiency. Automation reduces manual effort, minimizes errors, and frees up valuable time for teams to focus on value-added activities. DevOps encourages the use of tools such as CI/CD pipelines, configuration management systems, infrastructure as code, and monitoring platforms. These tools streamline processes, facilitate seamless integration, and provide real-time visibility into the software delivery pipeline, enabling teams to deliver high-quality software at an accelerated pace.</li><li><strong>Continuous Integration and Delivery:</strong> DevOps embraces the principles of continuous integration (CI) and continuous delivery (CD). CI involves frequent code integration, automated testing, and rapid feedback loops. This practice ensures that potential issues are identified early in the development cycle, enabling quick remediation and reducing the risk of costly defects. CD complements CI by automating the deployment process, allowing organizations to release software updates more frequently, reliably, and with minimal manual intervention. This approach enhances agility, responsiveness to customer needs, and the ability to deliver value at a faster pace.</li></ol><h3>My Learning in a Collaborative Culture :</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kLlrJUCOi4z4QAYUscIErQ.jpeg" /></figure><p>During <em>my journey</em> in the <strong>realm of DevOps</strong>, I delved into various concepts and practices that have reshaped my understanding of software development and operations. Three key areas that stood out in my learning process were building a React app in Docker, encountering and resolving issues in the Docker build process, and exploring the differences between Docker and virtual machines (VMs). Let’s summarize the insights gained from these experiences:</p><ol><li><strong><em>Building a React App in Docker:</em></strong> One of the fundamental aspects of DevOps is the utilization of containers for efficient and consistent software deployments. Building a React app in Docker enabled me to create a portable and self-contained environment for running the application. By defining a Dockerfile, I could specify the necessary dependencies, configure the runtime environment, and package the application into a lightweight container. This approach facilitated easier collaboration, improved reproducibility, and streamlined deployment across different environments.</li><li><strong><em>Issues in Building a React App in Docker:</em></strong> While Docker offers numerous benefits, I encountered a few challenges during the build process. These issues ranged from dependency conflicts and compatibility problems to performance and resource allocation constraints. However, overcoming these obstacles deepened my understanding of containerization and sharpened my troubleshooting skills. I learned to carefully manage dependencies, optimize container resources, and leverage container orchestration tools to address scalability concerns. These experiences highlighted the importance of thorough testing, effective debugging, and adopting best practices when working with Docker.</li><li><strong><em>Docker vs VMs:</em></strong> Understanding the distinctions between Docker and VMs allowed me to make informed decisions when choosing the most suitable technology for specific use cases. While VMs provide complete operating system virtualization, Docker utilizes containerization, which operates at the application level. Docker’s lightweight approach enables faster startup times, efficient resource utilization, and easier deployment of multiple applications on a single host. VMs, on the other hand, offer greater isolation and support for running different operating systems. Recognizing these differences enabled me to select the appropriate technology based on factors such as performance requirements, resource efficiency, and the need for OS-level separation.</li></ol><p>In addition to these specific concepts, my journey in DevOps has also exposed me to a broader set of principles and practices. I have come to appreciate the significance of continuous integration and delivery (CI/CD), automation, infrastructure as code (IaC), and the DevOps culture itself. The collaborative mindset, shared ownership, and continuous learning embedded in DevOps have instilled in me a commitment to breaking down silos, fostering effective communication, and driving continuous improvement.</p><p>Overall, my experience in DevOps has not only equipped me with technical knowledge but also emphasized the importance of embracing a holistic approach that blends culture, collaboration, and cutting-edge tools. By leveraging the principles of DevOps, I am confident in my ability to navigate the complexities of software development and operations, and to contribute to the seamless delivery of high-quality software products in an ever-evolving technological landscape.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbfd690a9eec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Containers vs. Virtual Machines: Understanding the Difference]]></title>
            <link>https://medium.com/@i180826/docker-containers-vs-virtual-machines-understanding-the-difference-673c1fc1d9f3?source=rss-e7ce3845c2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/673c1fc1d9f3</guid>
            <category><![CDATA[docker-vs-vm]]></category>
            <dc:creator><![CDATA[Shawaiz Ahmed]]></dc:creator>
            <pubDate>Sun, 07 May 2023 10:57:05 GMT</pubDate>
            <atom:updated>2023-05-07T10:57:05.330Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/980/0*50EY4ZsUm534PvB0.jpg" /></figure><h3><strong>Introduction</strong></h3><p>In the world of software development and deployment, there has been a constant need for tools and technologies that make managing applications and resources more efficient. Docker and Virtual Machines (VMs) are two such technologies that have revolutionized the way developers manage and deploy applications. While they share some similarities, it’s crucial to understand the fundamental differences between Docker and VMs to make informed decisions about which one to use for a given project.</p><p>In this blog post, we will explore the key differences between Docker containers and Virtual Machines, discussing their architecture, use cases, advantages, and disadvantages.</p><p><strong>Understanding Virtual Machines (VMs)</strong></p><p>A Virtual Machine is a software-based emulation of a physical computer, running a full-fledged operating system and its own applications. VMs run on a hypervisor, a piece of software that enables the virtualization of physical hardware resources. This allows multiple VMs to run on a single physical machine, each with its own operating system and resources. VMs are isolated from one another, ensuring that the failure of one VM does not affect others running on the same host.</p><p><strong>Understanding Docker Containers</strong></p><p>Docker is an open-source platform that uses containerization technology to automate the deployment of applications. A container is a lightweight, standalone, and executable software package that includes everything needed to run an application, including the code, runtime, system tools, libraries, and settings. Containers run directly on the host operating system’s kernel, sharing the same OS with other containers. This makes them more lightweight and resource-efficient compared to VMs.</p><p><strong>Architecture: Docker vs. VMs</strong></p><p>Virtual Machines rely on the hypervisor to virtualize hardware resources, including CPU, memory, storage, and network devices. Each VM runs its own guest operating system, which requires its own system resources. As a result, VMs can be resource-intensive, and their performance is dependent on the underlying hardware.</p><p>On the other hand, Docker containers share the host operating system’s kernel and run as isolated processes in the user space. This allows for faster startup times and lower resource usage compared to VMs. Moreover, since containers are isolated from one another, they can run multiple containers on a single host without any performance or security issues.</p><h3><strong>Use Cases</strong></h3><p>To further illustrate the differences between Docker containers and VMs, let’s look at some practical examples and code commands.</p><p><strong>Setting up a Virtual Machine</strong></p><p>To create a VM, we’ll use the popular open-source hypervisor VirtualBox. Download and install VirtualBox on your host system (<a href="https://www.virtualbox.org/wiki/Downloads">https://www.virtualbox.org/wiki/Downloads</a>). Once installed, you can create a new VM by following these steps:</p><ol><li>Open VirtualBox and click “New” to create a new VM.</li><li>Choose a name, type, and version for your VM, and click “Next.”</li><li>Allocate memory and storage for your VM.</li><li>Select an installation media (e.g., an ISO file of a Linux distribution).</li><li>Complete the setup wizard and click “Start” to boot the VM.</li></ol><p>You can now install the operating system and run applications within the VM.</p><p><strong>Setting up a Docker Container</strong></p><p>To create a Docker container, first, download and install Docker on your host system (<a href="https://docs.docker.com/get-docker/">https://docs.docker.com/get-docker/</a>). Once installed, you can create a new container by following these steps:</p><ol><li>Open a terminal or command prompt.</li><li>Find a suitable Docker image from Docker Hub (<a href="https://hub.docker.com/">https://hub.docker.com/</a>). For this example, we’ll use the official Ubuntu image.</li><li>Pull the image by running:</li></ol><pre>docker pull ubuntu</pre><p>4. Create and run a new container:</p><pre>docker run -it --name my-ubuntu-container ubuntu /bin/bash</pre><p>You are now running an Ubuntu container and have access to its command line.</p><p><strong>Deploying a Python Application</strong></p><p>To demonstrate the ease of deploying applications with Docker, let’s deploy a simple Python application using both VMs and Docker containers.</p><p><strong>Deploying on a VM:</strong></p><ol><li>Install Python and required libraries on your VM.</li><li>Copy your application code to the VM.</li><li>Run the application:</li></ol><pre>python3 my_app.py</pre><p><strong>Deploying using Docker:</strong></p><p>Create a Dockerfile in your application&#39;s directory:</p><pre>FROM python:3<br>WORKDIR /app<br>COPY . /app<br>CMD [&quot;python3&quot;, &quot;my_app.py&quot;]</pre><p>Build a Docker image:</p><pre>docker build -t my-python-app .</pre><p>Run the Docker container:</p><pre>docker run -d --name my-python-app-container my-python-app</pre><p>As you can see, deploying the Python application using Docker is much simpler and ensures consistent environments across different stages of development and deployment.</p><h3><strong>Advantages and Disadvantages</strong></h3><p><strong>Advantages of VMs:</strong></p><ul><li>Complete isolation from other VMs and the host system.</li><li>Ability to run applications with different OS requirements.</li><li>Better security due to the isolation of the guest OS.</li></ul><p><strong>Disadvantages of VMs:</strong></p><ul><li>Higher resource usage compared to containers.</li><li>Longer startup times.</li><li>More difficult to manage and maintain.</li></ul><p><strong>Advantages of Docker Containers:</strong></p><ul><li>Lightweight and resource-efficient.</li><li>Faster startup times.</li><li>Easier to manage and maintain.</li><li>Simplified deployment across multiple environments.</li></ul><p><strong>Disadvantages of Docker Containers:</strong></p><ul><li>Limited to the host operating system’s kernel.</li><li>Less isolation and security compared to VMs.</li></ul><h3><strong>Conclusion</strong></h3><p>Docker and Virtual Machines serve different purposes and have their own advantages and disadvantages. Understanding their differences and use cases, along with practical examples and code commands, will help you choose the right technology for your project. While Docker containers offer a lightweight, resource-efficient, and easily manageable solution, Virtual Machines provide better isolation and support for applications with different OS requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=673c1fc1d9f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Issues in building a React App in Docker and Podman]]></title>
            <link>https://medium.com/@i180826/issues-in-building-a-react-app-in-docker-and-podman-4989c898061f?source=rss-e7ce3845c2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4989c898061f</guid>
            <dc:creator><![CDATA[Shawaiz Ahmed]]></dc:creator>
            <pubDate>Tue, 21 Mar 2023 20:20:15 GMT</pubDate>
            <atom:updated>2023-03-21T20:20:15.821Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>Docker and Podman are popular containerization tools that are widely used to build and deploy applications. When it comes to building a React app in a containerized environment, there are some issues that developers may encounter. In this blog, we will discuss some of the common issues in building a React app in Docker and Podman, and how to resolve them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*egLdXTarxTPHMJscn1cvkA.jpeg" /></figure><h3><strong>Issues and Resolutions</strong></h3><p><strong>Node.js version : </strong>One of the most common issues developers face when building a React app in a container is related to the Node.js version. If the Node.js version in the container is different from the one used to develop the app, it can cause compatibility issues and lead to unexpected behavior.</p><p>To avoid this issue, make sure to specify the exact Node.js version in the Dockerfile or Podmanfile. You can use a base image that includes the required version of Node.js, or install it manually in the Dockerfile or Podmanfile.</p><p>For example, to install Node.js version 14.x in the Dockerfile, use the following command:</p><pre>FROM node:14</pre><p><strong>Cache busting :</strong> Another issue that developers may face when building a React app in a container is related to caching. If the container is using an old cache, it can cause the app to behave unexpectedly or show outdated content.</p><p>To avoid this issue, you can use cache busting techniques in the Dockerfile or Podmanfile. For example, you can add a timestamp to the COPY command in the Dockerfile to force the container to rebuild the app when the source code changes:</p><pre>COPY package*.json ./<br>RUN npm install<br>COPY . ./?t=$(date +%s)<br>RUN npm run build</pre><p>This will add a timestamp to the end of the COPY command, forcing the container to rebuild the app when the source code changes.</p><p><strong>Port mapping :</strong> Another issue that developers may face when building a React app in a container is related to port mapping. If the container’s port is not mapped correctly to the host machine, it can prevent the app from being accessible from a web browser.</p><p>To avoid this issue, make sure to map the container’s port to the host machine’s port in the Dockerfile or Podmanfile. You can use the EXPOSE and -p flags in the Dockerfile or Podmanfile to map the port:</p><pre>FROM node:14<br>EXPOSE 3000<br>WORKDIR /app<br>COPY package*.json ./<br>RUN npm install<br>COPY . .<br>CMD [&quot;npm&quot;, &quot;start&quot;]</pre><p>To run the container and map the port, use the following command:</p><pre>docker run -p 3000:3000 my-react-app</pre><h3><strong>Conclusion</strong></h3><p>Building a React app in a containerized environment can be challenging, but by understanding and addressing the common issues, you can ensure that your app runs smoothly in Docker or Podman. By specifying the correct Node.js version, using cache busting techniques, and mapping the container’s port to the host machine’s port, you can avoid common issues and ensure that your React app runs as expected.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4989c898061f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Docker to build React App]]></title>
            <link>https://medium.com/@i180826/using-docker-to-build-react-app-49862615e6f8?source=rss-e7ce3845c2a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/49862615e6f8</guid>
            <dc:creator><![CDATA[Shawaiz Ahmed]]></dc:creator>
            <pubDate>Sat, 18 Feb 2023 10:24:51 GMT</pubDate>
            <atom:updated>2023-02-18T10:25:57.288Z</atom:updated>
            <content:encoded><![CDATA[<p>This blog is written for people who have some basic knowledge of Docker and are facing some problems or want to make their working work more efficient. React is a popular JavaScript library for building web applications and Docker is a powerful tool for packaging and deploying applications in application containers. By combining these two technologies you can create a more efficient development and deployment workflow.</p><p>In this blog post, we’ll explore how to build a React app in Docker and its advantages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5xlLrei9arV0X4Xv" /></figure><p><strong>Step 1:</strong> Create a React app</p><p>To build a React app in Docker, you need to first create a new React app. You can create a new React app using the create-react-app command-line tool. Open your terminal and run the following command:</p><pre>npx create-react-app my-app</pre><p>This will create a new React app named “my-app” in a new directory.</p><p><strong>Step 2:</strong> Create a Dockerfile</p><p>The next step is to create a Dockerfile, which is a script that defines how to build a Docker image. Open your text editor and create a new file named “Dockerfile” in the root directory of your React app.</p><pre># Base image<br>FROM node:16.13-alpine<br><br># Working directory<br>WORKDIR /app<br><br># Copy dependencies<br>COPY package.json .<br>COPY package-lock.json .<br><br># Install dependencies<br>RUN npm install<br><br># Copy app files<br>COPY . .<br><br># Build the app<br>RUN npm run build<br><br># Serve the app<br>CMD [&quot;npm&quot;, &quot;run&quot;, &quot;serve&quot;]</pre><p>This Dockerfile starts with a base image of Node.js version 16.13-alpine, sets the working directory to /app, copies the package.json and package-lock.json files, installs the dependencies, copies the rest of the app files, builds the app using npm run build, and serves the app using npm run serve.</p><p><strong>Step 3:</strong> Build the Docker image</p><p>Once you have created the Dockerfile, the next step is to build the Docker image. Open your terminal and navigate to the root directory of your React app. Run the following command to build the Docker image:</p><pre>docker build -t my-app </pre><p>This command builds a Docker image named “my-app” from the Dockerfile in the current directory.</p><p><strong>Step 4:</strong> Run the Docker container</p><p>After building the Docker image, the next step is to run the Docker container. Run the following command to run the Docker container:</p><pre>docker run -p 4001:4001 my-app</pre><p>This command runs a Docker container from the “my-app” image, maps port 4001 in the container to port 4001 on your host machine, and starts the container.</p><p>You can also pass environment variables to the container using a .env file, which is a file containing key-value pairs that are automatically set as environment variables in the container. Here&#39;s an example of how to use a .env file:</p><pre>docker run --env-file .env my-image</pre><h4><strong>Advantages</strong> of building a React app in Docker</h4><ol><li>Consistent development environment: By building your React app in Docker, you can ensure that all developers on your team are using the same environment. This eliminates the “it works on my machine” problem and makes it easier to reproduce and debug issues.</li><li>Scalability: Docker containers can be easily scaled up or down, allowing your React app to handle more traffic without the need for additional infrastructure.</li><li>Isolation: Docker containers provide isolation from the host system, which helps to prevent conflicts between different applications and dependencies.</li><li>Security: Docker containers provide a more secure environment for your React app by isolating it from the host system and other containers.</li><li>Portability: Docker containers can be easily moved between different environments, such as development, staging, and production, without any changes to the application.</li></ol><h3><strong>Conclusion</strong></h3><p>Building a React app in Docker is a powerful way to package and deploy your application in a containerized environment. By following these steps, you can easily create a Docker image for your React app and run it as a Docker container. This approach makes it easier to manage dependencies, isolate environments, and scale your application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49862615e6f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>