<?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 Amayuru Amarasinghe on Medium]]></title>
        <description><![CDATA[Stories by Amayuru Amarasinghe on Medium]]></description>
        <link>https://medium.com/@amarasingheau?source=rss-eaeeb539d125------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*en3ABZw96yCzpYB2aBa0aQ.jpeg</url>
            <title>Stories by Amayuru Amarasinghe on Medium</title>
            <link>https://medium.com/@amarasingheau?source=rss-eaeeb539d125------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:44:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amarasingheau/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[What is Amazon EC2?]]></title>
            <link>https://medium.com/@amarasingheau/what-is-amazon-ec2-94c07567a625?source=rss-eaeeb539d125------2</link>
            <guid isPermaLink="false">https://medium.com/p/94c07567a625</guid>
            <dc:creator><![CDATA[Amayuru Amarasinghe]]></dc:creator>
            <pubDate>Sun, 02 Jun 2024 09:38:59 GMT</pubDate>
            <atom:updated>2024-06-02T10:44:58.095Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*hFlCzwNPg9GUm2G6WXlOig.png" /></figure><p>Amazon EC2 is a web service that provides secure, resizable computing capacity in the cloud. It allows you to provision virtual servers called EC2 instances. Simply a virtual machine in the cloud in which you can run your applications. You can manage these EC2 instances through the AWS Management Console, AWS Command Line Interface(CLI), AWS Software Development Kits(SDKs) or with the help of any automation tools.</p><p>When you are creating an Amazon EC2 instance you must specify the hardware specifications like CPU, memory, network and storage. Also, you want to specify logical configurations as well. Such as networking locations, firewall rules, authentication and operating systems.Those things you can choose in your own manner.</p><h3><strong>AMI(Amazon Machine Image)</strong></h3><p>AMI is similar to an operating system. From this, you can choose which operating system you want to configure. Now with AWS, it is not your responsibility to install OS.AWS will take care of it. You just want to configure what types of specifications you need to do. These specifications include storage mappings and architecture type(32-bit,64-bit..) and additional software installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7-3r3YQ8S5tVLnnlYQglw.png" /></figure><h3><strong>Relationship Between AMIs and EC2 Instances</strong></h3><p>Let’s take an example of a relationship between a class and an object. Class is something you are modelling and defining. It is a model which you can update with your own choice. Considering an object it is something you are going to interact with it. In the AMIs and EC2s relationship, AMI is the model and EC2 is the object. As objects can interact, EC2s can also be used to interact. Where you can install a web server and many more things. In a newly created instance, AWS allocates a virtual machine which is running on a hypervisor. The AMI you have selected is copied to the root volume. From this instance can be rebooted. In this instance, you can install packages and additional packages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*PMQqugO84e3qWH2gGKaiaQ.png" /></figure><p>The most important thing is these AMIs are reusable. When you choose a Windows-based AMI and configure the HTTP server, the application packages and other software you may need to run your application.If you want a second EC2 with the same configuration as mentioned it is very easy using AWS Management Console. In this way, you can avoid human errors happening when duplicating instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*E_I1cRkDtccyWrOK51-xNg.png" /></figure><p>Choosing an AMI in AWS Management Console is very easy to handle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*HSN32ZSWjIl9zOSFBXr15w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94c07567a625" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Neurology And Artificial Intelligence]]></title>
            <link>https://medium.com/@amarasingheau/neurology-and-artificial-intelligence-1faa81f36c7c?source=rss-eaeeb539d125------2</link>
            <guid isPermaLink="false">https://medium.com/p/1faa81f36c7c</guid>
            <dc:creator><![CDATA[Amayuru Amarasinghe]]></dc:creator>
            <pubDate>Sun, 28 Apr 2024 18:06:03 GMT</pubDate>
            <atom:updated>2024-04-28T18:06:03.286Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you know specific targeted movies and images can improve your mental health? Yes, it is true. That sounds interesting. Ok, let’s go to learn about what is an image or a visual.</p><p>Imagine If you are watching a video. When you are seeing those things millions of neurons behind the eyes will be activated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*07a2KH58sn4J-5xI" /><figcaption>Photo by <a href="https://unsplash.com/@o5ky?utm_source=medium&amp;utm_medium=referral">Oscar Sutton</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>What do you see in this picture? A Dog.No it is not a dog. When you are looking at an image millions of photons will hit your eyes and activate your neurons making a mental concept of a dog. These photons&#39; energy is distributed as mental energy. So, that is the thing happening inside the brain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1faa81f36c7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Complete Guide to Dockerize React App]]></title>
            <link>https://medium.com/@amarasingheau/complete-guide-to-dockerize-react-app-15f00d14c71c?source=rss-eaeeb539d125------2</link>
            <guid isPermaLink="false">https://medium.com/p/15f00d14c71c</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[docker-container]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Amayuru Amarasinghe]]></dc:creator>
            <pubDate>Wed, 24 Apr 2024 08:30:42 GMT</pubDate>
            <atom:updated>2024-04-24T11:23:38.539Z</atom:updated>
            <content:encoded><![CDATA[<p>First of all, create a react app. Create a new folder and open that with Visual Studio Code.</p><pre>npx create-react-app my-react-app</pre><p>After running that command inside the newly created directory cd into my-react-app</p><pre>cd my-react-app</pre><p>Then run the following command if the application is running correctly.</p><pre>npm start</pre><p>After these steps, you are good to go for Docker&#39;s initial steps. Now create a Dockerfile inside the root directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*PTdVo1b2_G8NpR49uw9Ssw.png" /></figure><p>Especially note that the Docker file path should be critical. Because of that Dockerfile path should be according to that image. After that, you must write the code in the newly created Dockerfile.</p><pre><br>FROM node:latest  <br><br><br>WORKDIR /usr/src/app  <br><br><br>COPY my-react-app/* /  <br><br><br>RUN npm install  <br><br><br>EXPOSE 3000  <br><br><br>CMD [ &quot;npm&quot;, &quot;start&quot; ]  </pre><p>Fill this data in the Dockerfile and don’t forget to save the file. After this, you must go to the root directory in the terminal and type the following code to create a docker image.</p><pre>docker build -t my-node-app .</pre><p>You can customize “my-node-app” because it is the docker image. This may take some time to complete this action.</p><p>Congratulations! Now you have successfully created the Docker image.</p><p>Now it is time to run the image in a container. You can do that by following this step. Run the following command.</p><pre>docker run -p 3000:3000 my-node-app</pre><p>You must replace “my-node-app” with the actual Docker image name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*dTmjFaRR15cp6Sy0pLrk0g.png" /></figure><blockquote>Hey ! Now you can ship your product!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15f00d14c71c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Docker?]]></title>
            <link>https://medium.com/@amarasingheau/what-is-docker-18b1b8e019ab?source=rss-eaeeb539d125------2</link>
            <guid isPermaLink="false">https://medium.com/p/18b1b8e019ab</guid>
            <category><![CDATA[dockerization]]></category>
            <category><![CDATA[dockerized]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Amayuru Amarasinghe]]></dc:creator>
            <pubDate>Tue, 23 Apr 2024 13:12:44 GMT</pubDate>
            <atom:updated>2024-04-23T13:12:44.491Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GL76XZ_KL6N0eqc8" /><figcaption>Photo by <a href="https://unsplash.com/@hdbernd?utm_source=medium&amp;utm_medium=referral">Bernd 📷 Dittrich</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Before looking into Docker first, we look at what is OS(Operating System)</p><p><strong>Operating System?</strong></p><p>What is that? That’s the one which is used to communicate with hardware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*WRG6rPJBfyPJ731Al6BvOQ.jpeg" /><figcaption>How OS Structured</figcaption></figure><p>The application layer runs on top of the Kernel. Mainly OS helps to create the connectivity between hardware and application layers. On the top of the application layer user will exist.</p><p><strong>Let’s move now to Docker</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*s1LJXISmNu9g8Ye5knzN2A.jpeg" /></figure><p>At OS level Docker can be used to virtualize the applications. Before Docker, if we wanted to run an external we needed to download all the applications to our system separately. With the help of docker containers, we can virtualize those applications. By using these containers we can pack all the dependencies in a container and ship them to the desired location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*grlK8wvCW2MaT1w6gUCc9g.jpeg" /></figure><p>These containers contain all the necessary dependencies that are essential to run the application. These containers are using the host OS. When running containers share the OS.Because of that these containers are less size and very easy to run.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18b1b8e019ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>