<?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 Eddykimutai on Medium]]></title>
        <description><![CDATA[Stories by Eddykimutai on Medium]]></description>
        <link>https://medium.com/@eddykimutai?source=rss-5188ed8c02fc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1wh-KVc_5mY-vK1vrk6eNA.jpeg</url>
            <title>Stories by Eddykimutai on Medium</title>
            <link>https://medium.com/@eddykimutai?source=rss-5188ed8c02fc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:40:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eddykimutai/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[A Beginner’s Guide to Dockerizing Applications Using a Node Js Example]]></title>
            <link>https://medium.com/@eddykimutai/a-beginners-guide-to-dockerizing-applications-using-a-node-js-example-cd9e2353df71?source=rss-5188ed8c02fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd9e2353df71</guid>
            <category><![CDATA[dockerfiles]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-image]]></category>
            <dc:creator><![CDATA[Eddykimutai]]></dc:creator>
            <pubDate>Mon, 20 May 2024 12:57:14 GMT</pubDate>
            <atom:updated>2024-05-20T13:02:39.966Z</atom:updated>
            <content:encoded><![CDATA[<p>Docker has revolutionized the way we build, ship, and run applications, making development and deployment more efficient and predictable. If you’re just dipping your toes into Docker waters and want to harness its power for Docker in development, you’re in the right place. We will break down the process into simple steps using a practical example of Node.js application.</p><p>Getting Started: Docker file Basics 🐳</p><p>At the heart of Dockerizing your application lies the `Dockerfile`, a blueprint for building Docker images. Let’s dissect a basic `Dockerfile` tailored for Node.js:</p><pre><strong>FROM</strong> node:alpine<br><br><strong>WORKDIR</strong> &#39;/app&#39;<br><br><strong>COPY</strong> package.json .<br><strong>RUN </strong> npm install<br><br><strong>COPY</strong> . .<br><br><strong>CMD</strong> [ &quot;npm&quot;,&quot;run&quot;,&quot;start&quot; ]</pre><p>Understanding Each Component</p><p><strong>FROM</strong> node:alpine :<br>The FROM instruction initializes a new build stage and sets the base image for subsequent instructions. As such, a valid Dockerfile must start with a FROM instruction. The image can be any valid image from the Docker Hub. Here, we’re leveraging the `<em>node:alpine</em>` image, known for its lightweight footprint, perfect for Node.js applications.</p><p><strong>WORKDIR</strong> ‘/app’ :<br>Docker containers operate within a filesystem isolated from the host machine. This line sets the working directory inside the container where subsequent commands will be executed. Specifying a WORKDIR is often a good practice as it makes your Dockerfile more explicit and helps avoid confusion about where files are being copied and where commands are being executed. Don’t be like me one time I didn’t specify the directory and got a headache because the image couldn’t build. When building Docker images, overlooking `<strong><em>WORKDIR</em></strong>` can lead to errors when building from different locations. Simply add `<strong><em>WORKDIR</em></strong>` to set the context for subsequent commands. Avoid surprises and make your Dockerfile more robust with this small but crucial detail.</p><p><strong>COPY</strong> package.json . :<br>We copy the `<em>package.json</em>` file from our local directory into the container’s `<em>/app</em>` directory. This is the first step in leveraging Docker’s layer caching mechanism to optimize builds. Docker’s layer-based architecture optimizes image building by caching each line in the Dockerfile as a separate layer. Copying `<em>package.json</em>` and `<em>package-lock.json</em>` first, and installing dependencies before copying the rest of the application, speeds up the process. This optimization means Docker only reinstalls dependencies when package files change, reducing build times. It’s a common pattern to separate dependency installation from adding application code. If package files remain unchanged, Docker reuses the existing layer, skipping the npm install step and making subsequent builds faster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HmOcQfA-HxqOogqt.jpg" /><figcaption>A comparison between Containers and Virtual Machines.</figcaption></figure><blockquote>Docker containers: lightweight, share OS kernel, ideal for microservices and portability.Virtual machines: full isolation, separate OS installations, suitable for diverse OS environments and legacy apps.</blockquote><p><strong>RUN </strong>npm install:<br>In Docker, running commands in containers is streamlined through the `docker run` command. With simple syntax, like `<em>docker run [IMAGE] [COMMAND]</em>`, developers execute commands within isolated environments effortlessly. Docker’s versatility and efficiency simplify development, ensuring consistency across different setups. This feature empowers teams to focus on software delivery without infrastructure complexities, making Docker indispensable in modern development workflows. With our `<em>package.json</em>` now in place, we run `<em>npm install</em>` inside the container. This installs all dependencies listed in `<em>package.json</em>`, ensuring our Node.js application has everything it needs to run smoothly.</p><p><strong>COPY</strong> . . :<br>Docker’s `<em>COPY</em>` instruction is essential for quickly adding files from the host machine into a container during the build process. With a concise syntax (<em>`COPY &lt;src&gt; &lt;dest&gt;`</em>), developers effortlessly integrate application code and configuration files. This streamlines deployment, ensuring all necessary resources are readily available within the container. Next, we copy the rest of our application files into the container’s `<em>/app</em>` directory. This includes your source code, configuration files, and any other assets required by your application.</p><p><strong>CMD</strong> [“npm”, “run”, “start”] :<br>In Dockerfile, the `<em>CMD</em>` instruction defines the default executable of a Docker image. When you run this image as the base of a container without additional command-line arguments, the container executes the process specified by the `<em>CMD`</em> command. It’s crucial to note that the `<em>CMD</em>` instructions are only utilized if no arguments are added to the run command when starting a container. If you add an argument to the command, it overrides the specified <em>`CMD</em>` command. This flexibility allows for dynamic customization of container behavior, enabling developers to tailor container execution according to specific requirements. Finally, we specify the command to execute when the Docker container starts. In this case, we’re using `npm run start` to kick off our Node.js application.</p><p><strong>Building and Running Your Dockerized Node.js App</strong></p><p>Now that we’ve crafted our `<em>Dockerfile</em>`, let’s put it to use ,change directory in your terminal to the location where your project is located, then follow the following instructions below :</p><ol><li>Build Your Docker Image:</li></ol><pre>docker build -t my-node-app .</pre><blockquote>Replace `<em>my-node-app</em>` with a name of your choosing.</blockquote><p>2. Run Your Docker Container:</p><pre>docker run -d -p 3000:3000 my-node-app</pre><blockquote>This command launches your Docker container in detached mode (`-d`), exposing port `3000` of the container to port `3000` on your local machine (`-p 3000:3000`).</blockquote><p>3. Access Your Node.js Application:<br> Open your web browser and navigate to `<a href="http://localhost:3000`"><strong><em>http://localhost:3000</em></strong>`</a>. Voila! Your Node.js application is now running inside a Docker container.</p><p><strong>Conclusion</strong></p><p>By Dockerizing your Node.js applications, you’ve unlocked a world of benefits, including improved reproducibility, scalability, and portability. Armed with this newfound knowledge, you’re well-equipped to explore more advanced Docker features and tackle larger projects with confidence. Happy coding, and may your containers always run smoothly!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd9e2353df71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating the Cloud: Unraveling the Power of Networking]]></title>
            <link>https://medium.com/@eddykimutai/navigating-the-cloud-unraveling-the-power-of-networking-3718f7e08953?source=rss-5188ed8c02fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/3718f7e08953</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Eddykimutai]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 20:23:22 GMT</pubDate>
            <atom:updated>2024-04-01T20:23:22.820Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s digital landscape, where businesses strive for agility, scalability, and efficiency, the cloud stands as a pivotal force reshaping our technological infrastructure. At the core of this transformation lies networking in the cloud — a dynamic and intricate ecosystem that powers seamless connectivity, enables rapid data transfer, and fuels innovation across industries.</p><p>Embracing the cloud isn’t just about migrating data and applications; it’s about leveraging the full potential of networking to unlock new opportunities and drive business growth. Whether you’re a seasoned IT professional or a curious entrepreneur exploring the cloud, understanding the nuances of cloud networking is essential. So, let’s delve into the intricacies and unravel the power of networking in the cloud.</p><p>The Foundation: Virtualization and Software-defined Networking (SDN)</p><p>At the heart of cloud networking lies virtualization, a technology that abstracts hardware resources and creates virtual instances of networks, servers, storage, and more. This enables efficient resource utilization, scalability, and flexibility — hallmarks of cloud computing. Software-defined Networking (SDN) takes this a step further by centralizing network management and control through software, offering unprecedented agility and programmability.</p><p>Connectivity Beyond Boundaries: Global Reach and Interconnectivity</p><p>One of the most compelling aspects of cloud networking is its ability to transcend geographical boundaries. Cloud providers operate vast networks of data centers strategically distributed worldwide, enabling businesses to deploy applications closer to end-users for reduced latency and enhanced performance. Moreover, interconnectivity between different cloud regions and services facilitates seamless data transfer and redundancy, ensuring high availability and reliability.</p><p>Security in the Cloud: Fortifying the Perimeter</p><p>Security remains a paramount concern in the cloud, given the decentralized nature of data and the ever-evolving threat landscape. Cloud networking employs a multi-layered approach to security, incorporating encryption, identity and access management (IAM), firewalls, and intrusion detection systems (IDS). Additionally, advanced networking features like Virtual Private Clouds (VPCs) and private connectivity options such as VPNs and Direct Connect enable organizations to establish secure communication channels and isolate sensitive workloads.</p><p>Empowering Innovation: Network Automation and Orchestration</p><p>Automation is the linchpin of modern cloud networking, streamlining routine tasks, reducing human error, and accelerating deployment cycles. With Infrastructure as Code (IaC) tools like Terraform and configuration management platforms like Ansible, organizations can provision, configure, and manage network resources programmatically, fostering agility and consistency. Moreover, orchestration frameworks like Kubernetes facilitate the seamless integration of networking with containerized applications, empowering developers to build and deploy with unprecedented speed and efficiency.</p><p>The Future Horizon: Edge Computing and 5G</p><p>As we look to the future, the convergence of cloud networking with emerging technologies like edge computing and 5G promises to redefine the digital landscape. Edge computing brings computation and data storage closer to the point of data generation, enabling real-time processing and low-latency applications. Combined with the high-speed, low-latency connectivity of 5G networks, this paradigm shift opens new possibilities for immersive experiences, IoT deployments, and mission-critical applications across industries.</p><p>In conclusion, networking in the cloud isn’t just about connecting devices and transmitting data; it’s about building a foundation for innovation, collaboration, and growth. By embracing the principles of virtualization, software-defined networking, and automation, businesses can harness the full potential of the cloud to drive transformation and stay ahead in today’s competitive landscape. So, whether you’re embarking on your cloud journey or refining your existing infrastructure, remember — the power of networking in the cloud knows no bounds.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3718f7e08953" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Profound Guide to Mastery in AWS Networking: Unraveling Connectivity Challenges with Finesse]]></title>
            <link>https://medium.com/@eddykimutai/a-profound-guide-to-mastery-in-aws-networking-unraveling-connectivity-challenges-with-finesse-a178d5826f06?source=rss-5188ed8c02fc------2</link>
            <guid isPermaLink="false">https://medium.com/p/a178d5826f06</guid>
            <category><![CDATA[virtual-private-cloud]]></category>
            <category><![CDATA[aws-networking]]></category>
            <dc:creator><![CDATA[Eddykimutai]]></dc:creator>
            <pubDate>Sun, 31 Mar 2024 19:02:40 GMT</pubDate>
            <atom:updated>2024-03-31T19:02:40.076Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction:</h3><p>Traversing the labyrinthine pathways of cloud networking may seem formidable, yet as adept cloud support engineers at Amazon Web Services (AWS), it presents a challenge we readily confront. Within this discourse, we shall delve into a tangible scenario where a consultancy grapples with connectivity impediments within their AWS framework. Accompany us as we decipher the enigma shrouding their networking predicament and escort you through the troubleshooting process, meticulously.</p><h3>Scenario Overview:</h3><p>Envision an urgent missive from Ana Contractor, a representative of a client, her exasperation palpable due to an Apache server anomaly in their AWS milieu. Ana laments her inability to ping the server and encountering errors whilst endeavoring to access it through a web browser. Our directive? To swiftly intervene, diagnose the quandary, and seamlessly reinstate connectivity.</p><h3>Objective:</h3><p>Upon the culmination of this expedition, you shall be endowed to:</p><ul><li>Deconstruct intricate networking scenarios adeptly.</li><li>Navigate AWS infrastructure with finesse to rectify connectivity impediments proficiently.</li></ul><h3>Troubleshooting Steps:</h3><h4>Step 1: Deciphering SSH Connection to an EC2 Instance</h4><p>For Windows Users:</p><ul><li>Procure PuTTY and configure a session with the public DNS or IPv4 address of your EC2 instance.</li><li>Authenticate as ‘ec2-user’ upon prompt.</li></ul><p>For macOS and Linux Users:</p><ul><li>Obtain the ‘labsuser.pem’ file and refine its permissions.</li><li>Employ SSH to establish a connection with the EC2 instance using the command: ssh -i abc.pem ec2-user@&lt;public-ip&gt;</li></ul><h4>Step 2: Installation and Configuration of Apache (httpd)</h4><ul><li>Assess the status of the Apache service via sudo systemctl status httpd.service. Ensure its dormancy.</li><li>Initiate the Apache service with sudo systemctl start httpd.service.</li><li>Reaffirm the service status to ensure its activation.</li><li>Validate Apache functionality by accessing your instance’s public IP in a web browser.</li></ul><h4>Step 3: Scrutinizing VPC Configuration</h4><ul><li>Navigate to the AWS Management Console and access the VPC service.</li><li>Diligently examine subnets, route tables, internet gateway, security groups, and network ACLs for accurate configurations.</li><li>Validate connectivity through external website pings and browser-based Apache access tests.</li></ul><h3>Recap:</h3><p>In this endeavor of rectification, we have underscored the significance of methodical scrutiny and meticulous dissection of AWS infrastructure. By parsing the client’s scenario and meticulously inspecting VPC configurations, we have effectively resolved the networking quandary, guaranteeing uninterrupted service provision.</p><h3>Conclusion:</h3><p>Mastery in AWS networking is an arduous pursuit, yet armed with apt tools and methodologies, cloud support engineers can confront any challenge head-on. By adhering to the elucidated steps within this compendium, you shall be well-prepared to navigate the intricacies of AWS networking, furnishing exemplary support and ensuring seamless operations for AWS clientele.</p><h3>Additional Resources:</h3><p>For deeper insights into Amazon VPC and networking best practices within AWS, peruse the supplementary resources furnished by AWS.</p><p>Through the adoption of a systematic troubleshooting approach and judicious utilization of AWS resources, cloud support engineers can augment their prowess and effectuate tangible advancements within their organizations.</p><h3>FAQs:</h3><ol><li>How do I troubleshoot if I encounter SSH connection issues?</li></ol><p>If you encounter SSH connection issues, ensure that your security group settings allow SSH traffic (port 22) and that your EC2 instance is running. Double-check your SSH key pair and its permissions.</p><p>2.What should I do if Apache fails to start after installation?</p><p>If Apache fails to start after installation, check for errors in the Apache logs (/var/log/httpd/error_log). Common issues include port conflicts and misconfigurations in Apache&#39;s configuration files.</p><p>4.Why is VPC configuration crucial for AWS networking?</p><p>VPC configuration dictates how your AWS resources communicate with each other and the internet. Accurate VPC configuration ensures proper routing, security, and connectivity within your AWS environment.</p><p>5.Can I access AWS resources from outside the VPC?</p><p>Yes, you can access AWS resources from outside the VPC by configuring appropriate security group rules, network ACLs, and routing tables to allow inbound and outbound traffic.</p><p>6.What are some best practices for securing AWS networking?</p><p>Best practices for securing AWS networking include implementing least privilege access controls, regularly updating security group rules and network ACLs, monitoring network traffic, and encrypting data in transit.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a178d5826f06" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>