<?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 Ramesh Patil on Medium]]></title>
        <description><![CDATA[Stories by Ramesh Patil on Medium]]></description>
        <link>https://medium.com/@rameshpatildwd?source=rss-d70a6856d195------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UD34rmIA9LhXMKlx1-itmg.jpeg</url>
            <title>Stories by Ramesh Patil on Medium</title>
            <link>https://medium.com/@rameshpatildwd?source=rss-d70a6856d195------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:09:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rameshpatildwd/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[Project: Hosting a Static Website on Amazon S3 with Secure CloudFront Delivery]]></title>
            <link>https://medium.com/@rameshpatildwd/project-hosting-a-static-website-on-amazon-s3-with-secure-cloudfront-delivery-5f80964fc224?source=rss-d70a6856d195------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f80964fc224</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cdn]]></category>
            <dc:creator><![CDATA[Ramesh Patil]]></dc:creator>
            <pubDate>Wed, 30 Apr 2025 04:21:27 GMT</pubDate>
            <atom:updated>2025-04-30T04:21:27.356Z</atom:updated>
            <content:encoded><![CDATA[<h3>📌 Objective</h3><p>To explore <strong>AWS CloudFront (a Content Delivery Network)</strong> service by securely hosting a static website on a private Amazon S3 bucket and delivering it via CloudFront with restricted access using <strong>Origin Access Control (OAC)</strong>.</p><h3>📖 What is a CDN?</h3><p>A <strong>Content Delivery Network (CDN)</strong> is a distributed system of servers located globally at <strong>edge locations</strong>. It caches and delivers web content to users from the nearest edge server, reducing latency, improving page load times, and decreasing load on the origin server.</p><p><strong>AWS CloudFront</strong> is the CDN service offered by Amazon Web Services.</p><h3>🎯 Project Overview</h3><p>I wanted to get hands-on experience with:</p><ul><li>AWS CloudFront</li><li>Securely hosting content on an Amazon S3 bucket</li><li>Understanding caching and invalidation concepts</li><li>Configuring <strong>Origin Access Control (OAC)</strong> for restricted access</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/0*ScZJKjySzyKVs1di" /></figure><h3>🛠️ Steps Performed</h3><h4>1️⃣ Created an S3 Bucket</h4><ul><li>Bucket name: example-bucket1818</li><li>Blocked all public access</li><li>Disabled static website hosting</li><li>Uploaded index.html file at the root level</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bq6pdJ2un4IfxWVI" /><figcaption><em>S3 bucket with index.html</em></figcaption></figure><h4>2️⃣ Created a CloudFront Distribution</h4><ul><li>Origin: Selected the S3 bucket (example-bucket1818.s3.us-east-1.amazonaws.com)</li><li>Enabled <strong>Origin Access Control (OAC)</strong></li><li>Configured CloudFront to serve content from S3 securely</li><li>Allowed only CloudFront distribution to access objects in the bucket</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lSmpfBi1wWqnIpri" /><figcaption><em>CloudFront distribution details</em></figcaption></figure><h4>3️⃣ Updated S3 Bucket Policy</h4><p>Added a bucket policy to allow only the specific CloudFront distribution to get objects:</p><pre>{<br>  &quot;Version&quot;: &quot;2008-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;AllowCloudFrontServicePrincipal&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: {<br>        &quot;Service&quot;: &quot;cloudfront.amazonaws.com&quot;<br>      },<br>      &quot;Action&quot;: &quot;s3:GetObject&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:s3:::example-bucket1818/*&quot;,<br>      &quot;Condition&quot;: {<br>        &quot;StringEquals&quot;: {<br>          &quot;AWS:SourceArn&quot;: &quot;arn:aws:cloudfront::343218207164:distribution/E13AWP9ML7XWY4&quot;<br>        }<br>      }<br>    }<br>  ]<br>}</pre><h4>4️⃣ Accessed the Website via CloudFront URL</h4><ul><li>Successfully accessed index.html page content using the CloudFront distribution URL.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gJFn7q0V2QGMeQly" /><figcaption><em>Webpage loaded via CloudFront URL</em></figcaption></figure><h4>5️⃣ Tested Content Update + Invalidation</h4><ul><li>Updated index.html content in S3</li><li>Created a <strong>CloudFront invalidation request for /*</strong></li><li>Verified new content reflected successfully after invalidation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PvYqMRsG2NQZ0mjB" /><figcaption><em>Invalidation request</em></figcaption></figure><h3>✅ Key Takeaways</h3><ul><li>Understood how <strong>CloudFront</strong> securely serves private S3 content</li><li>Learned about <strong>OAC configuration and bucket policy management</strong></li><li>Tested <strong>CloudFront caching</strong> and <strong>content invalidation</strong></li><li>Realized how CDNs optimize content delivery by caching at <strong>edge locations</strong></li></ul><h3>📢 Summary</h3><p>A simple yet insightful AWS hands-on project to learn CloudFront and secure static website hosting. Highly recommend others exploring CDN concepts to try this out!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f80964fc224" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux File System: Backbone of Every Server]]></title>
            <link>https://medium.com/@rameshpatildwd/linux-file-system-backbone-of-every-server-f2b3776a3929?source=rss-d70a6856d195------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2b3776a3929</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Ramesh Patil]]></dc:creator>
            <pubDate>Mon, 21 Apr 2025 05:27:09 GMT</pubDate>
            <atom:updated>2025-04-21T05:49:23.292Z</atom:updated>
            <content:encoded><![CDATA[<p>You just SSH into your Linux VM and are greeted with this:</p><pre>ubuntu@172.120.85.12:~$</pre><p>Here’s what each part means:</p><ul><li><strong>ubuntu</strong> → The username you’re logged in as</li><li><strong>172.120.85.12</strong> → The machine’s IP (hostname)</li><li><strong>:</strong> → Separator between user and path</li><li><strong>~</strong> → A shortcut to the home directory of the logged-in user (e.g., /home/ubuntu)</li><li><strong>$</strong> → Standard shell prompt symbol for regular users (# for root)</li></ul><p>Understanding the prompt is your first step toward navigating the Linux ecosystem.</p><h3>The Linux File System Tree</h3><p><strong>Ever felt lost inside a Linux terminal? </strong>You SSH into a VM, and now you’re staring at a dozen directories under /:</p><ul><li>What’s in /etc?</li><li>Is /opt optional?</li><li>Why is /home not your actual home?</li></ul><p>Let’s demystify it.</p><p>Think of the Linux file system as an upside-down tree:</p><ul><li>At the top is the <strong>root directory </strong><strong>/</strong></li><li>Everything — files, folders, devices — branches from it</li></ul><p>This hierarchy remains consistent across distros like Ubuntu, Red Hat, or Debian.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*g280tkSUAxxYY6hZiRmxtA.png" /><figcaption>Linux File System Hierarchy</figcaption></figure><h3>1. System Essentials</h3><h4>/bin — User Binaries</h4><p>Commands like ls, cp, and mv live here. These are essential tools available to all users.</p><h4>/sbin — System Binaries</h4><p>Holds critical admin commands like reboot, fsck, and iptables. Usually executed by root or via sudo.</p><h4>/lib — Shared Libraries</h4><p>Supports binaries in /bin and /sbin. Think of these as the .dll files of Linux.</p><h4>/boot — Boot Loader Files</h4><p>Stores bootloader configs and the Linux kernel. Without it, your system won’t boot.</p><h4>/etc — Configuration Files</h4><p>System-wide settings — network, packages, cron jobs. It’s Linux’s brain center.</p><h3>2. User &amp; Software Directories</h3><h4>/home — User Homes</h4><p>Each user has their own folder here: /home/alex, /home/sam, etc. Personal files and configs live here.</p><blockquote><strong>Bonus Tip:</strong><br>To create users:</blockquote><blockquote>adduser → Creates the user <em>and</em> the home directory</blockquote><blockquote>useradd → Creates user <em>without</em> home directory (unless you specify it)</blockquote><h4>/usr — User System Resources</h4><p>Houses user programs and libraries in subfolders like /usr/bin and /usr/lib.<br> Despite the name, it’s not for personal files — it&#39;s for user-installed system software.</p><h4>/opt — Optional Software</h4><p>Used for third-party applications. Install a vendor’s software manually? It likely lands here.</p><h4>/srv — Service Data</h4><p>Service-specific data (like web or FTP content) is stored here.</p><h4>/data — Custom Data (Org-Specific)</h4><p>Not part of standard Linux folders, but many organizations use it to store shared or persistent data across apps.</p><h3>3. Temporary &amp; Runtime Spaces</h3><h4>/var — Variable Data Files</h4><p>This directory contains data that <strong>changes frequently</strong>: logs, caches, spool files, and more.</p><h4>/tmp — Temporary Files</h4><p>For temporary use by applications. Often auto-cleaned.</p><h4>/run — Runtime Data</h4><p>Stores process data during system runtime — like PID files and sockets.</p><h4>/dev — Device Files</h4><p>Everything in Linux is treated as a file — even hardware. Disks (/dev/sda), USBs, etc., are represented here.</p><h4>/proc and /sys — Virtual Filesystems</h4><p>Windows into the system itself. Want real-time CPU info? Check /proc/cpuinfo.</p><h4>/mnt — Mount Point</h4><p>Used by admins to temporarily mount external storage or additional file systems.</p><h4>/root — Root User’s Home</h4><p>This is the home directory for the root user, not to be confused with the root / directory.</p><h3>🧠 Why This Matters</h3><p>According to IBM, <strong>over 90% of public cloud workloads run on Linux</strong>. That means this structure isn’t just theoretical — it powers the backbone of modern infrastructure.</p><p>Imagine:</p><ul><li>Deploying an app and placing config files in the wrong directory</li><li>Wiping logs by accident because you didn’t understand /var</li><li>Troubleshooting a boot failure without knowing what /boot is for</li></ul><p>Understanding the Linux file system is foundational — like knowing your city’s map before navigating to a new destination.</p><h3>💭 Final Thoughts</h3><p>You don’t need to memorize every folder. But understanding what each one does saves time, prevents mistakes, and helps you think like Linux does — logically and modularly.</p><h3>Let’s Talk</h3><p>What’s one Linux directory that confused you at first?<br>Drop your answer in the comments or share your favorite Linux tip!</p><p><strong>If you found this helpful, give it a clap and follow for more posts on Linux, DevOps, and Cloud.</strong></p><p>#Linux #LinuxBasics #DevOps #SysAdmin #CloudComputing #TerminalTips #LinuxFileSystem</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2b3776a3929" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Switching Gears:Zero-Downtime Updates with Kubernetes Blue-Green Deployments]]></title>
            <link>https://medium.com/@rameshpatildwd/switching-gears-zero-downtime-updates-with-kubernetes-blue-green-deployments-e94fc652210a?source=rss-d70a6856d195------2</link>
            <guid isPermaLink="false">https://medium.com/p/e94fc652210a</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[k8s]]></category>
            <dc:creator><![CDATA[Ramesh Patil]]></dc:creator>
            <pubDate>Wed, 27 Sep 2023 05:07:12 GMT</pubDate>
            <atom:updated>2023-09-27T05:07:12.200Z</atom:updated>
            <content:encoded><![CDATA[<p><em>In the fast-paced world of software development, delivering new features and updates while ensuring minimal downtime is a paramount concern. Kubernetes, the container orchestration platform, offers an elegant solution to this challenge through Blue-Green Deployments. In this blog post, we’ll explore how to set up and manage Blue-Green Deployments in Kubernetes using a simple example.</em></p><p><strong>Introduction</strong></p><p>Kubernetes, often abbreviated as K8s, has become the go-to platform for deploying and managing containerized applications. Among its many features, Blue-Green Deployment stands out as a powerful technique for achieving zero-downtime updates and minimizing risks during releases.</p><p>In this guide, we’ll walk through the process of implementing a Blue-Green Deployment strategy in Kubernetes using three essential manifests: <strong>blue-deployment.yaml</strong>, <strong>green-deployment.yaml</strong>, and <strong>service.yaml</strong>. We&#39;ll use an everyday analogy to make this concept accessible to everyone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*EKwGxBrAOhxHYkILadgbhg.png" /></figure><p><strong>Understanding Blue-Green Deployment</strong></p><p>Imagine you’re renovating your house. You want the transition to be seamless, with no interruption to your daily life. Here’s how Blue-Green Deployment works in the world of Kubernetes:</p><ol><li><strong>Blue Deployment:</strong> This is your current setup, the “old” house. It’s running your application and serving your users.</li></ol><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: blue-deployment<br>spec:<br>  replicas: 2<br>  selector:<br>    matchLabels:<br>      type: blue<br>  template:<br>    metadata:<br>      name: blue-pod<br>      labels:<br>        type: blue<br>    spec:<br>      containers:<br>        - name: blue-container<br>          image: example:1.00</pre><p><strong>2. Green Deployment:</strong> This is your “new” house, where you’ve made improvements or updates to your application. (You can see that I have updated image from 1.00 to 1.10 for understanding) It’s not exposed to users yet, so you can test it without affecting them.</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: green-deployment<br>spec:<br>  replicas: 2<br>  selector:<br>    matchLabels:<br>      type: green<br>  template:<br>    metadata:<br>      name: green-pod<br>      labels:<br>        type: green<br>    spec:<br>      containers:<br>        - name: green-container<br>          image: example:1.10</pre><p><strong>3. Service Manifest:</strong> This is like your switchboard operator. It controls the traffic flow between the “blue” and “green” houses.</p><pre>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: my-service<br>spec:<br>  type: NodePort<br>  selector:<br>    matchLabels:<br>      type: blue (## Change this to type: green to switch traffic)<br>  ports:<br>    - protocol: TCP<br>      port: 80<br>      targetPort: 8080<br>      nodePort: 30165</pre><p><strong>Deployment in Action</strong></p><p>Now, let’s see how this works in practice:</p><ol><li>Initially, your users are accessing your application through the “blue” service. It’s business as usual.</li><li>When you’re ready to introduce the updates from the “green” house, you simply update the <strong>service.yaml</strong> file, changing label from<strong>type: blue</strong> to <strong>type: green</strong>. This redirects traffic to the &quot;green&quot; deployment.</li><li>Your users are now seamlessly and instantly switched to the “green” house, experiencing the updates. Behind the scenes, a load balancer directs incoming requests to your service, which then smartly routes them to the “green” pods or deployment</li><li>If any issues arise, you can quickly roll back to the “blue” house by changing the label back to <strong>type: blue</strong>. The load balancer resumes directing traffic to the &quot;blue&quot; pods, providing a safety net for a smooth user experience.</li></ol><p><strong>Benefits of Blue-Green Deployment</strong></p><ul><li><strong>Zero Downtime:</strong> Users experience no interruption during updates.</li><li><strong>Safety Net:</strong> If the “green” house has issues, you can revert to the “blue” house instantly.</li><li><strong>Testing Ground:</strong> The “green” house serves as a safe environment for testing updates.</li></ul><p><strong>Conclusion</strong></p><p>Kubernetes simplifies complex deployment strategies like Blue-Green Deployments, ensuring that your users enjoy a seamless experience while you enhance your application. By understanding and leveraging the power of Kubernetes manifests like <strong>blue-deployment.yaml</strong>, <strong>green-deployment.yaml</strong>, and <strong>service.yaml</strong>, you can confidently embrace this deployment approach.</p><p>Blue-Green Deployment isn’t just for the tech-savvy; it’s a practical and accessible concept that anyone can understand. So, the next time you hear about Kubernetes and Blue-Green Deployment, picture your house renovation — because, in essence, that’s precisely what it’s all about: a smooth transition to something better without disrupting your life.</p><p>Happy deploying!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e94fc652210a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginner’s Guide to Jenkins: Installation and Jenkins Integration with Git, Maven & Tomcat]]></title>
            <link>https://medium.com/@rameshpatildwd/beginners-guide-to-jenkins-installation-and-jenkins-integration-with-git-maven-tomcat-fbcae96f70d0?source=rss-d70a6856d195------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbcae96f70d0</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[cicd]]></category>
            <dc:creator><![CDATA[Ramesh Patil]]></dc:creator>
            <pubDate>Sat, 13 May 2023 15:33:17 GMT</pubDate>
            <atom:updated>2023-05-14T19:08:23.696Z</atom:updated>
            <content:encoded><![CDATA[<p>Jenkins, an open-source automation server, is a powerful tool for building, testing, and deploying software projects. It offers a wide range of plugins and integrations, making it a popular choice for implementing Continuous Integration and Continuous Deployment (CI/CD) pipelines. In this beginner’s guide, we will walk you through the process of installing Jenkins on a RHEL machine and integrating it with Git, Maven, and Tomcat. By the end of this guide, you will have a solid understanding of how to automate your software development process using Jenkins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*IxLzH9nghGgo4Fu72kI4Gg.png" /><figcaption>Project Details</figcaption></figure><h3><strong>Section 1: Jenkins Installation</strong></h3><p>To begin using Jenkins, you first need to install it on your machine. Follow these steps to install Jenkins on a RHEL machine:</p><ol><li>Visit the official Jenkins website at <a href="https://www.jenkins.io/">https://www.jenkins.io</a> and navigate to the installation instructions for RHEL.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*XCUUb1m0IxqRuUbm9hJZxg.png" /><figcaption>Jenkins.io Page</figcaption></figure><p>2. Execute the commands provided in the instructions in your Linux terminal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*hLu3IgyUN7GvqCglQOgH_w.png" /><figcaption>Jenkins Installation Commands</figcaption></figure><p>Once you have completed the installation steps, Jenkins will be installed on your machine. Now, let’s proceed to start the Jenkins service.</p><p>3. Check the status of the Jenkins service and start it if it is not already running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*k_kwHn9eFCnVYREXQE8wKg.png" /><figcaption>Commands for starting Jenkins Service</figcaption></figure><p>Jenkins runs on Port №8080 by default, so we need to allow inbound traffic for this port in your AWS EC2 instance to access Jenkins.</p><p>4. Configure your AWS EC2 instance to allow inbound traffic for Port Number 8080.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*TNSs4uXHTpXGOm5a3NTujA.png" /><figcaption>Allowing Inbound Traffic to Port 8080 in AWS EC2 Jenkins Server</figcaption></figure><p>You can now access the Jenkins terminal by using your public IPv4 address followed by port 8080. Upon accessing, you will be prompted to enter the Initial admin password.</p><p>5. Retrieve the Initial admin password from the specified location and enter it to proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*Qvx9N_pqQfj-0W5USIwNfQ.png" /><figcaption>After Installation is Completed, Jenkins will Prompt for Password</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*hzImMV9Wl4IaV_B5b8fLrQ.png" /><figcaption>Initial Password from Jenkins CLI</figcaption></figure><p>6. After entering the Initial admin password, you will be prompted to install the suggested plugins by Jenkins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*-VAojULeI6AYTltQvlccLg.png" /><figcaption>Installing Suggested plugins</figcaption></figure><p>Once the plugins are installed, you will need to provide the required credentials information to sign in to the Jenkins dashboard.</p><p>7. Fill up the required credentials information and sign in to the Jenkins dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*O2vJV7Ob8dJumqhLuNU8JA.png" /><figcaption>Setting up Jenkins admin credentials</figcaption></figure><p><strong>Congratulations!</strong> You have successfully installed Jenkins and are now ready to integrate it with other tools for automated code fetching, building, and deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*rT7qb865KpssfyQEUCcrKw.png" /><figcaption>Jenkins Dashboard</figcaption></figure><h3>Section 2: Jenkins Integration with Git, Maven &amp; Tomcat</h3><p>In this section, I will guide you through the process of integrating Jenkins with Git, Maven, and Tomcat to automate your CI/CD pipeline. We will cover the following steps:</p><ol><li>Install the required plugins: GitHub Integration, Maven Integration, and Deploy to Container.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*ATRqSw-OBbT0-Ff7JMq9Hg.png" /><figcaption>Plugins Installation Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*Kenc5mZnqm97GDslJWlQGw.png" /><figcaption>GitHub Integration Plugin Installation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*1HXaWvhYheE50momzpcjOw.png" /><figcaption>Maven Integration Plugin Installation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*L7Dnx766UWSnLXLAMY9Ujw.png" /><figcaption>Tomcat Integration Plugin Installation</figcaption></figure><p>2. Configure Maven in Jenkins to trigger automatic builds after cloning the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*q-TM5Lyi2Yif7l2lcOG-Gw.png" /><figcaption>Configuring Installation of Maven</figcaption></figure><p>3. Add Tomcat user credentials to deploy war files to Tomcat. Make sure you have hosted Tomcat in another EC2 server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*ROfcLt8fLq9eETeKjaHxYA.png" /><figcaption>Tomcat Credentials Updating</figcaption></figure><p>4. Create a freestyle project in Jenkins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*Q8iFZJpN-6XkTjrRNGqnPA.png" /><figcaption>Creation of Freestyle project</figcaption></figure><p>5. In SCM section, select git and add your github repo url, which allows Jenkins to clone your repository from github. Since we have public repo, need not to give any credentials like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*GBHPSrVXYTfMF8aoO9NjDw.png" /><figcaption>Jenkins-Github Integration</figcaption></figure><p>6. Now in Build Step section, click on drop down menu and select invoke top-level maven targets (This option is only visible if you have installed maven integration plugin previously) and then add goals as “clean” and “package”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*eMovp-g3vZYaZzQTni5mUw.png" /><figcaption>Adding Build step</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*-BYqPM6J2nCb9mBG3Xjnsg.png" /><figcaption>Setting up maven goals for building source code</figcaption></figure><p>7. After completing the maven job in build step section, scroll down to post-build actions and select Deploy war/ear to a container option (this option visible only after installing Deploy to container plugin and fill-up the required details of tomcat web server as shown:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*xGfYJ14OJskX9rHHvOZK0A.png" /><figcaption>Jenkins-Tomcat Integration</figcaption></figure><p>8. After configuring the job, you can save and come out of the job and click on Build tab to trigger the job. After build is completed you will be able to see output on the console as shown</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*wOhgihK2UpYMM06OBosnqQ.png" /><figcaption>Console output after building the job</figcaption></figure><p>9. Since job is executed without any error, our war files should be deployed to given tomcat address and our website should be working by now. Check that by logging into tomcat web server as shown</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*eE8R-srPVmBRG-xKezqadw.png" /><figcaption>Application is Deployed</figcaption></figure><p>10. Now let’s make this procedure human interventionless by automating the whole procedure. By doing so, once a developer commits any changes to the code-base, that change will be automatically built, tested and deployed to the tomcat server. To achieve this we need to select Poll SCM option in build trigger and assign the time interval for every build as shown</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*27psBrKYiIN7CUX7fdlAiw.png" /><figcaption>Enabling Poll SCM to trigger Job Automatically</figcaption></figure><p>11. Let’s make a small change in code base as shown</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*rgDpluD6Ux3j148hxtUrhg.png" /><figcaption>Change in code base</figcaption></figure><p>12. After one minute of committing this change, Jenkins is automatically building, generating war files and deploying the code changes into web-server as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*G5WEqpYXqS_CRjAy8TIS1A.png" /><figcaption>Updated deployment of Application automatically by Poll SCM</figcaption></figure><p>Now our Jenkins Job is completely automated and need no human operator to build, test and deploy job every time when a developer makes changes.</p><h3>Conclusion</h3><p>Jenkins is a powerful automation tool that can greatly enhance your software development process. By following the steps outlined in this beginner’s guide, you have learned how to install Jenkins, integrate it with Git, Maven, and Tomcat, and automate your CI/CD pipeline.</p><p>Happy automating with Jenkins!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*NhEwkjRJV4s8jjErtJI1Ag.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbcae96f70d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to Kubernetes: Understanding the Open-Source Orchestration Platform]]></title>
            <link>https://medium.com/@rameshpatildwd/a-beginners-guide-to-kubernetes-understanding-the-open-source-orchestration-platform-12f31702fb3d?source=rss-d70a6856d195------2</link>
            <guid isPermaLink="false">https://medium.com/p/12f31702fb3d</guid>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[deployment]]></category>
            <dc:creator><![CDATA[Ramesh Patil]]></dc:creator>
            <pubDate>Tue, 09 May 2023 04:30:18 GMT</pubDate>
            <atom:updated>2023-06-06T10:27:43.545Z</atom:updated>
            <content:encoded><![CDATA[<p>As the popularity of containerized applications is skyrocketing, managing them can be a challenging task. Kubernetes, commonly known as K8s, is an open-source orchestration platform that helps manage and automate the deployment, scaling, and management of containerized applications. In this beginner’s guide, we’ll explore the Kubernetes architecture, important components, and deployment on cloud platforms like AWS, GCP, and Azure.</p><p><strong>Kubernetes Architecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5uIM-xvsZ9QOyUlv-ut1FQ.png" /><figcaption>Typical K8s Architecture</figcaption></figure><p>A Kubernetes architecture consists of a set of master and node machines that make up a cluster. The communication between the user, master, and node machines happens through an API server. The kubelet communicates the status of nodes to the API server, which then stores it in ETCD. The controller manager fetches the current state of the node from ETCD and maintains the desired state using the kube scheduler. The node machines contain pods, and pods contain containers. The management of pods is the responsibility of kubelet.</p><p><strong>Important Components of Kubernetes Master</strong></p><p><strong>API Server:</strong> The central component of Kubernetes, which acts as a bridge between the user and the cluster. All components of the cluster communicate with the API server to perform their actions.</p><p><strong>ETCD:</strong> A key-value store of the Kubernetes cluster, which stores the current state of nodes, pods, and containers.</p><p><strong>Controller Manager:</strong> It makes sure the actual state of the cluster matches the desired state. It will check the current state of the cluster in ETCD and if that is not matching the desired state it will communicate with the Kube scheduler to match the desired state.</p><p><strong>Kube Scheduler:</strong> Responsible for assigning pods to nodes and maintaining the desired state of the cluster.</p><p><strong>Important Components of Kubernetes Nodes</strong></p><p><strong>Kubelet:</strong> An agent on a node machine, which communicates with the master to maintain the state of pods. It also communicates with the container runtime to start and stop containers. It uses port 10255.</p><p><strong>Kube Proxy:</strong> Assigns dynamic IPs to pods. It runs on each node to ensure that each pod gets a unique IP.</p><p><strong>Pods:</strong> The smallest deployable units in Kubernetes. They are a group of one or more containers that share the same network namespace and can communicate with each other. We can deploy pods using two methods, one is imperative, i.e., by commands, and the other is declarative, i.e., by manifests.</p><p><strong>Container Runtime:</strong> Responsible for running containers within pods.</p><p><strong>Kubernetes Deployment on Cloud Platforms</strong></p><p><strong>AWS: Elastic Kubernetes Service (EKS)</strong></p><p>AWS offers Elastic Kubernetes Service (EKS), which is a fully managed Kubernetes service. EKS simplifies the deployment and management of Kubernetes clusters. EKS integrates with other AWS services such as Elastic Load Balancing, Elastic Block Store, and Identity and Access Management.</p><p><strong>GCP: Google Kubernetes Engine (GKE)</strong></p><p>Google Cloud Platform (GCP) offers Google Kubernetes Engine (GKE), which is a fully managed Kubernetes service. GKE simplifies the deployment and management of Kubernetes clusters. GKE integrates with other GCP services such as Cloud Load Balancing, Cloud Storage, and Cloud Identity and Access Management.</p><p><strong>Azure: Azure Kubernetes Service (AKS)</strong></p><p>Microsoft Azure offers Azure Kubernetes Service (AKS), which is a fully managed Kubernetes service. AKS simplifies the deployment and management of Kubernetes clusters. AKS integrates with other Azure services such as Azure Load Balancer, Azure Storage, and Azure Active Directory.</p><p><strong>Conclusion</strong></p><p>In conclusion, Kubernetes is a powerful open-source orchestration platform that simplifies the deployment, scaling, and management of containerized applications.In addition to its technical capabilities, Kubernetes offers numerous benefits to organizations, including increased flexibility, scalability, and cost savings. By automating the deployment and scaling of containerized applications, organizations can reduce the time and resources required to manage their infrastructure, enabling them to focus on delivering value to their customers. With its robust architecture and powerful features, Kubernetes can help you simplify and streamline your deployment process, enabling you to deliver high-quality applications faster and more efficiently than ever before.</p><p>Thank you for reading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*NhEwkjRJV4s8jjErtJI1Ag.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12f31702fb3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Ansible?]]></title>
            <link>https://medium.com/@rameshpatildwd/what-is-ansible-e03d6f2f025?source=rss-d70a6856d195------2</link>
            <guid isPermaLink="false">https://medium.com/p/e03d6f2f025</guid>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[configuration-management]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[playbook]]></category>
            <category><![CDATA[system-administration]]></category>
            <dc:creator><![CDATA[Ramesh Patil]]></dc:creator>
            <pubDate>Mon, 01 May 2023 04:23:54 GMT</pubDate>
            <atom:updated>2023-05-01T04:23:54.254Z</atom:updated>
            <content:encoded><![CDATA[<p>What is Ansible?</p><p>Ansible an agent less configuration management tool which helps to automate the operations of Deployment and Configuration of the servers. It uses YAML to automate the jobs and connects to servers using SSH connection. It uses a push mechanism to complete the assigned tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qND4_KTVeZk54DqQO0oHcw.png" /></figure><p>After reading this article you will be able to connect Ansible master and node machines for automating the configuration management of servers. Ansible uses a master-slave architecture where the master machine is responsible for managing the node machines.</p><ol><li>To get started, launch two EC2 instances, (preferably Amazon Linux Machines) one as the Ansible Master and one as the Ansible Node. Note that in real-time scenarios, there can be any number of node machines.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*NpZSodSzxofMx4YOfYc6pA.png" /></figure><p>2. Update machine, then install Ansible using the shown command in your Ansible-Master machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*lUittA5psvqFAMhcet2Wlg.png" /></figure><p>3. Now check the version to verify if Ansible is installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*mw9rcKPUj2lGSCFYY5eptw.png" /></figure><p>4. Now to access our node machine from this master machine, lets add private IP address of node by creating a dev group inside <strong>/etc/ansible/hosts</strong> file of master machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*Y3r6gG1V1uqNNYi0e34pnQ.png" /></figure><p>5. Now inside <strong>/etc/ansible/ansible.cfg</strong> file lets do the following changes. In this step we basically giving permission to inventory file and to root user. So uncomment the inventory and sudo_user line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*TrQ54vbFCbqfz27ESUdpCA.png" /></figure><p>6. Now after completing the above steps we should be able to access the node machine by entering “<strong>ssh private-ip of node</strong>” in master. But by trying that you may encounter the following error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*oaP5gBNM-VqnboRl39KonA.png" /></figure><p>7. To resolve this, we have to <strong>establish SSH connection</strong> between Master and Node machine. So lets create a user called <em>ansible </em>in both the machines for ssh connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*Lvr8gBYGGgN6UyzSBt0RUg.png" /></figure><p>8. Update the same user in Node machine too:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*3wz9LvgNpGYhinPhKvVWLQ.png" /></figure><p>9. Now let us switch to <em>ansible </em>user and try to install httpd just to see if our ansible user can do all the root users work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*bOOGYaVGbG4OE1bkSuBIoQ.png" /></figure><p>10. You can see the error above showing that our <em>ansible </em>user is not in the sudoers file. So to resolve this error we need to give root user permission to this user in the <strong>visudo</strong> file as shown below: do the same changes for both machines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*Bx0w35apD1bJBprH-nZCeg.png" /></figure><p>11. Also to access sshd connection we need to make following changes in <strong>/etc/ssh/sshd_config</strong> file. After making changes restart sshd service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*XMK01LgUHnACs5KsbtFH0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*_yyhIk3HaMMjrmLdMEgfhw.png" /></figure><p>12. Now lets generate <strong>ssh-keys</strong> for password less authentication inside ansible user in master machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*N5MYa8BB0c9OK386pwfckQ.png" /></figure><p>13. Now lets copy our public key from master to node machine using following commands as shown ssh-copy-id ansible@node-ip</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*-2J2iCQwG0ku0SVcvx1B_A.png" /></figure><p>14. Now we can be able to access our node machine from master using as shown below, without password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*_Mo0GYj2INI6L89rzvXIIw.png" /></figure><p>15. You can check all nodes configured in your master by using following command “ansible all -m ping”. In the output of the command you will be able to see the all node machines IP addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*oFSm7lANrsMwer2tSToj_w.png" /></figure><p>In conclusion, connecting the Ansible master and node machines is an essential step to automate the configuration management of servers. The master-slave architecture of Ansible ensures that the master machine is responsible for managing the node machines. By following the steps outlined in this article, you can establish a secure connection between the master and node machines, allowing you to configure and manage multiple servers efficiently. Automating configuration management with Ansible can save a considerable amount of time and resources for IT teams, making it an essential tool for DevOps and system administrators.</p><p>Thank you for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e03d6f2f025" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Beginner Guide to Docker: Creating Images, Containers, and Pushing to Registries]]></title>
            <link>https://medium.com/@rameshpatildwd/the-ultimate-guide-to-docker-creating-images-containers-and-pushing-to-registries-103e8f43ba2f?source=rss-d70a6856d195------2</link>
            <guid isPermaLink="false">https://medium.com/p/103e8f43ba2f</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[dockerhub]]></category>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <dc:creator><![CDATA[Ramesh Patil]]></dc:creator>
            <pubDate>Fri, 21 Apr 2023 05:11:34 GMT</pubDate>
            <atom:updated>2023-04-21T05:21:07.189Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the world of Docker, a powerful tool that has revolutionized the way we develop, deploy, and manage applications. Docker is a containerization platform that enables developers to package their applications and dependencies into a single container, making them easily portable across different environments. With Docker, you can build, ship, and run applications anywhere, whether it’s on your laptop, in the cloud, or on-premises.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*Adnvbl7sGnXg3eDzI2ePFA.png" /></figure><p>In this blog post, we will cover the basics of Docker, including how to create Docker images, write Docker files, and create Docker containers. We will also explore how to push Docker images to registries, and more. By the end of this post, you’ll have a solid understanding of how Docker works and how it can help streamline your application development and deployment processes. So, let’s dive into the exciting world of Docker!</p><p><strong>What is Docker?</strong></p><blockquote>Docker is an open-source platform designed to create, run and deploy applications using Containers. Docker performs OS level virtualization to create containers. Docker is written in the GO language. It’s also a platform as a service.</blockquote><p><strong>How Docker works ? What is the Architecture of Docker?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AtjkrHbYlAHQsAjzzDp7xQ.png" /><figcaption>Docker Architecture</figcaption></figure><p>Developers will write a docker file which contains all the dependencies of an application. That file will then be built into a docker image and pushed on to docker hub. The image is then pulled from the hub and converted into a docker container on any OS.</p><p>So by understanding docker Architecture we now know that docker is mainly about images and containers. So we will now understand what exactly is a Docker image and Docker container.</p><p><strong>What is Docker image?</strong></p><blockquote>Docker Images are read only binary templates which will contain the snapshots of the dependencies required to run an application. Containers are created using images.</blockquote><p><strong>What is Docker Container?</strong></p><blockquote>Docker containers are lightweight standalone executable packages of software that contains everything needed to run a specific application. Images become containers when they run on docker engine.</blockquote><p><strong>What are the ways to create a Docker image?</strong></p><p>So, to create a Docker image we have 3 ways such as</p><blockquote>Pulling image from Docker hub</blockquote><blockquote>Creating image by Docker file</blockquote><blockquote>Creating image by an existing container</blockquote><p>We will now explore each way of creating a docker image for better understanding.</p><ol><li><strong>Pulling image from Docker Hub:</strong> Here I will be pulling <em>Ubuntu</em> image from docker hub as shown below. You can follow the same highlighted commands in order to follow the steps as shown.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*cULXC7xIHrQVkWIygPPIKw.png" /><figcaption>Pulling of Ubuntu Image from Docker Hub</figcaption></figure><p>2. <strong>Creating Image by writing a Docker file:</strong> whenever we want to create a custom image, this is the method that we go for. Docker file is basically a file which will contain number of instructions to create a image. In the instructions we can mention all that we need to have in our image or container. Below is the simple example of how we can write a docker file to install <em>git</em> on top of <em>red hat</em> OS</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*E7wio-W-hGSCGTuVyjsksQ.png" /><figcaption>Simple docker file showing installation of Git</figcaption></figure><p>After writing docker file, you will need to save it and come out of vi editor. Then using the shown command you can create a custom docker image as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*63Liq386ohe0l6tSNyi_KA.png" /><figcaption>Creation of Docker Image from a Docker file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*nvjFedklLhVQsUDF2MoA8Q.png" /><figcaption>Continued..</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*aOf7nOKMfXbLC6uKcyUxjg.png" /><figcaption>Custom image Image1 is created</figcaption></figure><p>Let us create docker container out of newly created custom image. Follow below command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*peJX5z9wB86OOOdlMutCpQ.png" /><figcaption>Creating docker container from custom docker image</figcaption></figure><p>Now, in the below snap you can see all the instructions mentioned in docker file are executed inside our docker container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*9YNLLi6jHgviDwNQM5Ccpg.png" /><figcaption>Newly created docker container details</figcaption></figure><p><strong>3. Creating Docker Image from an existing container:</strong> In this example, you will understand how we can create a docker image from an existing container.</p><p>In the below snap, I’m starting container 2 and moving inside it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*Fvy4EQWRIcA2g-l2738Myg.png" /></figure><p>Now, I’m making few changes to the existing container as per needs of the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*ZiRHL-eTNgqKBZe39nqJDg.png" /></figure><p>Now, once after your container is having all the files and dependencies that your project demands, you can create a image out of it as shown below. You can see the custom <em>image 2</em> created from existing container <em>cont 2</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*VyTR8_jZxoudcpme9c6xrw.png" /><figcaption>Docker image creation from an existing container</figcaption></figure><p>Hence, Docker provides developers with multiple ways to create images, including the Docker commit command, using Docker files, and pulling image directly from hub. Each method has its advantages and disadvantages, and the best approach depends on your specific needs and preferences.</p><p>The Docker commit command is a quick and easy way to create a new image based on an existing container, but it can be difficult to reproduce and lacks transparency. Docker files, on the other hand, offer a more declarative and reproducible approach to creating images, allowing you to version control your images and keep track of changes over time.</p><p>Now that we’ve covered the different ways to create Docker images, let’s move on to the next step in the Docker workflow: <strong>Pushing images to a registry.</strong></p><p>In order to push your custom docker image to docker hub you will need to have a docker hub account. If you don not have one, don’t worry that can be done in minutes, head over here and create your docker hub account <a href="https://hub.docker.com/signup">https://hub.docker.com/signup</a> . Once after you creating your docker hub account, you will see something like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*-pjbvi46veGmwtmH3d4g1A.png" /><figcaption>Docker Hub</figcaption></figure><p>Now, come back to your docker CLI and login to docker hub as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*HKE2FZ8xx8BQEVDYabxSTA.png" /><figcaption>Docker Login</figcaption></figure><p>The next step in docker image pushing operation is to create a tag to image that you want to push, follow the below commands</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*7AWIc9T942AWrGt9Qt4XKw.png" /><figcaption>Docker tag</figcaption></figure><p>Once after tagging your image, its time to push your image to the docker hub. Follow the below snap</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*XNB5gsLvOBtGwWp7EJ7N5A.png" /><figcaption>Docker Push</figcaption></figure><p>Finally,,,you can see your image being successfully pushed into your docker hub account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*x2lvREyLcfC-pow7MtbLOA.png" /><figcaption>Docker Hub</figcaption></figure><p>So now its easy for you to transfer this image to anyone in the world. Anybody who has access can easily pull your image and run the application.</p><p>As I wrap up this post, I want to thank you for taking the time to read through it and for your interest in Docker. My goal with this post was to provide you with a practical overview of Docker and its various components. I hope that I was able to help you understand the basics of Docker, from creating Docker images to pushing them to registries, and everything in between.</p><p>As always, there is so much more to learn and explore when it comes to Docker, and I encourage you to continue your journey with this powerful tool. Whether you’re looking to optimize your development workflow, streamline your deployment processes, or build scalable and reliable applications, Docker has something to offer.</p><p>Thank you again for your time, and I wish you the best of luck on your journey!</p><p>Ramesh Patil</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=103e8f43ba2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git for Absolute Beginners]]></title>
            <link>https://medium.com/@rameshpatildwd/welcome-to-my-first-medium-blog-53a818e3a8cc?source=rss-d70a6856d195------2</link>
            <guid isPermaLink="false">https://medium.com/p/53a818e3a8cc</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Ramesh Patil]]></dc:creator>
            <pubDate>Sun, 16 Apr 2023 05:20:43 GMT</pubDate>
            <atom:updated>2023-04-25T04:38:20.600Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Evryone! In this article, I’ll be sharing some useful Git concepts and commands that will help you to start learning basics of Git as a developer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*ZiMZKcsgdQon9iQI2gqKLQ.png" /></figure><p>Whether you’re a beginner or an experienced coder, Git is an essential tool for version control and collaboration. With Git, you can easily manage changes to your code base, collaborate with others, and track the history of your project. In this article, I’ll cover some basic Git concepts like repositories, commits, push and logs and show you how to use some essential Git commands like git init, git add, git commit, and git push. So, if you’re looking to improve your Git skills or just getting started with version control, you’ve come to the right place! Let’s dive in.</p><p>In order to start using Git for version control, we first need to create a repository and initialize it using the <strong><em>git init</em></strong> command. This will initialize your local Git and create three stages: the working directory, the staging area, and the local repository.<br>The working directory is where you create, edit, and delete files. The staging area is where you can review and make changes to the files that will be committed. And the local repository is where Git stores the committed changes, along with the entire history of your project.<br>By separating your work into these three stages, you can easily manage changes to your project and track the history of your codebase over time. So, let’s get started and create our first Git repository!<br>After initializing Git, the next step is to configure it. This is necessary because when you perform any commit or push operation, Git wants to know who is doing these operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*1aSCYA_D_1vNoPxje_K5aA.jpeg" /></figure><p>You can use the <strong><em>git config --global user.name &lt;user-name&gt; </em></strong>and <strong><em>git config --global user.email &lt;email-id&gt; </em></strong>commands to configure your username and email address respectively. You can also cross check the configured username and email by using <strong><em>git config --list </em></strong>command.</p><p>Once configured, you can start editing your code in the working directory. Once you’re done editing, it’s time to move your changes to the staging area so that you can commit them to the local repository. You can do this by using the git add command. You can either use <strong><em>git add .</em></strong> to add all changes or <strong><em>git add &lt;file-name&gt;</em></strong> to add specific files to the staging area.<br>After adding your changes to the staging area, it’s time to commit them to the local repository using the <strong><em>git commit -m &quot;commit message&quot;</em></strong> command. Make sure to write a descriptive commit message that explains the changes you made. By following these simple steps, you can effectively manage your changes and keep track of the history of your project. In the next section, we’ll explore some more Git commands that will help in your day-today work.</p><p>After you&#39;ve successfully committed your changes to the local repository, it&#39;s time to view the commit history. You can do this by using the <strong><em>git log</em></strong> command. This will display a list of all the commits that have been made, along with their commit IDs, authors, dates, and commit messages. This is useful for keeping track of the changes that have been made to the project over time.<br>In addition to viewing the commit history, you can also view individual commits using the <strong><em>git show</em></strong> command. This command takes a commit ID as an argument and displays the changes that were made in that particular commit. This can be useful for debugging or understanding how a particular feature was implemented.<br>Now that we&#39;ve committed our changes to our local repository, it&#39;s time to push our code to the central repository. To do this, we need to add the address of our central repository to our local Git.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*LlCl-jyoimbWxkmy-9gZ4g.png" /></figure><p>We can use the <strong><em>git remote add &lt;URL&gt; </em></strong>command for this purpose. After adding the remote repository URL, we can use the <strong><em>git remote -v</em></strong> command to verify that the remote has been added correctly. Now that you have added the remote repository, you can push your changes to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*nlugmMsI581Y_br5vINRbQ.jpeg" /></figure><p>To push your changes, use the <strong><em>git push</em></strong> command. This command will prompt you for your username and password. Once you enter these, your changes will be pushed to the remote repository.<br>Great! By learning the very basics of Git, you&#39;ve taken the first step towards effective version control and collaboration with others. With practice and patience, you can become proficient in Git and unlock its full potential.<br>Remember to always write descriptive commit messages and follow best practices to ensure a clean and organized project history. And don&#39;t be afraid to explore more advanced Git commands and features to take your skills to the next level.<br>Thank you for reading, and stay tuned for more exciting blog posts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53a818e3a8cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>