<?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 Soe Tint Aung on Medium]]></title>
        <description><![CDATA[Stories by Soe Tint Aung on Medium]]></description>
        <link>https://medium.com/@yoloxsta?source=rss-80050d7b78e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*H1tTMWcmZfQxBqJ5</url>
            <title>Stories by Soe Tint Aung on Medium</title>
            <link>https://medium.com/@yoloxsta?source=rss-80050d7b78e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 21:14:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yoloxsta/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[EC2 Start, Stop And Resizing By Using Lambda And Event Bridge]]></title>
            <link>https://yoloxsta.medium.com/ec2-start-stop-and-resizing-by-using-lambda-and-event-bridge-771f64fa4bdf?source=rss-80050d7b78e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/771f64fa4bdf</guid>
            <dc:creator><![CDATA[Soe Tint Aung]]></dc:creator>
            <pubDate>Thu, 05 Sep 2024 15:55:19 GMT</pubDate>
            <atom:updated>2024-09-08T08:48:56.954Z</atom:updated>
            <content:encoded><![CDATA[<p>Whether you want to start/stop EC2 instance with a time schedule, <br> Whether you want to manage instance size(values) by time schedule, you can use like this to reduce blah blah blah.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*lhTkQcGei3bwn8kTzt_Nog.png" /></figure><h4>What is AWS Lambda?</h4><p>AWS Lambda is a compute service that allows you to run code for virtually any type of application or serverless service without the need for server administration. AWS Lambda handles all the administrative tasks for you, including server and operating system maintenance, resource allocation, automatic scaling, code monitoring, and logging. All you need to do is provide your code in one of the languages supported by AWS Lambda.</p><h3>What is AWS EventBridge?</h3><p>AWS EventBridge is a powerful tool that enables you to build applications that react to state changes in real-time. It provides a flexible, scalable event bus service to connect your applications with data from AWS services, custom applications, and third-party SaaS applications. With EventBridge, you can set up event-driven architectures where events trigger actions, such as running a Lambda function or sending notifications.</p><h3>Key Components of Event Bridge</h3><ol><li><strong>Event Bus</strong>: An event bus is a pipeline that receives events from different sources. You can have a default event bus and custom event buses.</li><li><strong>Event Source</strong>: This is where the events originate, such as AWS services, custom applications, or third-party services.</li><li><strong>Event Rule</strong>: Rules match incoming events and route them to target services like Lambda, SQS, SNS, and more.</li><li><strong>Event Target</strong>: The service or application that receives the event once it matches a rule.</li></ol><p>###############################################################</p><p>Okay…let’s start for that topic !</p><ul><li>Go to Lambda, then type function name.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BPPz7Eob0-zArSjGdZ5Zug.png" /></figure><p>After that, choose python for Run time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HkTruruKWTsikUkoh37sHg.png" /></figure><p>Then, choose Create role. ( add EC2FullAccess and Event Bridge Schedular permission to that resulting role. ps: giving FullAccess is not best practice). After that, click to create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*18TUo2UMgHAtukT4gxfJJQ.png" /></figure><p>After that, enter the code to be deployed here. Then, click to deploy.(Code sample is added at the end of my blog).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I7gtoz1b8yZQBt36YeK_2w.png" /></figure><p>#####################</p><p>For Event Bridge, Go to Event Bridge and click to create rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OA8SNVJvEdo8Kd7FlEDbeQ.png" /></figure><p>Enter name and choose schedule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UpURIfq2wJYCoiw6EeAWag.png" /></figure><p>Enter Schedule name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xCTkmlViq8RjksgsN5-UMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fAs55TylGZaJQAEfnCG5FA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_UzhL9173aWY46GLx8tU2Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*stv3vvdeWFbBklkEI5MwuQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNeDEAkd5obPlGihS9TsJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Itn9jzlwf2p2aDqv_i1GA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*74N741DDCWcjBQoCv8Ngzw.png" /></figure><p>###############################################################</p><p>ec2_start.py</p><pre>import boto3<br><br>Instance_ids = [&#39;your instance id&#39;]<br><br>Region_Name = &#39;instance&#39;s region&#39;<br><br>ec2 = boto3.client(&#39;ec2&#39;, region_name=Region_Name)<br>def lambda_handler(event, context):<br>    ec2.start_instances(InstanceIds=Instance_ids)<br>    print(&#39;Started: &#39; + str(Instance_idsnstances))</pre><p>ec2_stop.py</p><pre>import boto3<br><br>Instance_ids = [&#39;your instance id&#39;]<br><br>Region_Name = &#39;instance&#39;s region&#39;<br><br>ec2 = boto3.client(&#39;ec2&#39;, region_name=Region_Name)<br>def lambda_handler(event, context):<br>    ec2.stop_instances(InstanceIds=Instance_ids)<br>    print(&#39;stopped: &#39; + str(Instance_idsnstances))</pre><p>EC2 Instance Type Resizing (eg: micro to medium)</p><p>medium_to_micro.py</p><pre>import boto3<br>from botocore.exceptions import WaiterError<br><br>def wait_until_instance_stopped(ec2_client, instance_id):<br>    waiter = ec2_client.get_waiter(&#39;instance_stopped&#39;)<br>    try:<br>        waiter.wait(InstanceIds=[instance_id])<br>    except WaiterError as e:<br>        # Handle the exception if the instance fails to stop within the specified timeout<br>        print(f&quot;Error waiting for instance to stop: {e}&quot;)<br><br>def lambda_handler(event, context):<br>    # Type your instance-ID<br>    instance_id = &#39;i-*******&#39;<br>    <br>    # Create an EC2 client<br>    ec2_client = boto3.client(&#39;ec2&#39;)<br>    <br>    try:<br>        # Stop the instance<br>        ec2_client.stop_instances(InstanceIds=[instance_id])<br>        <br>        # Wait until the instance is stopped<br>        wait_until_instance_stopped(ec2_client, instance_id)<br>        <br>        # Modify the instance type<br>        ec2_client.modify_instance_attribute(InstanceId=instance_id, InstanceType={&#39;Value&#39;: &#39;t2.micro&#39;})<br>        <br>        # Start the instance<br>        ec2_client.start_instances(InstanceIds=[instance_id])<br>        <br>        return &#39;Instance resizing complete.&#39;<br>    <br>    except Exception as e:<br>        # Handle any exceptions that occur during the resizing process<br>        return f&#39;Error resizing instance: {e}&#39;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=771f64fa4bdf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevOps အကြောင်းသိကောင်းစရာ]]></title>
            <link>https://yoloxsta.medium.com/devops-%E1%80%A1%E1%80%80%E1%80%BC%E1%80%B1%E1%80%AC%E1%80%84%E1%80%BA%E1%80%B8%E1%80%9E%E1%80%AD%E1%80%80%E1%80%B1%E1%80%AC%E1%80%84%E1%80%BA%E1%80%B8%E1%80%85%E1%80%9B%E1%80%AC-e66e08769a6b?source=rss-80050d7b78e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e66e08769a6b</guid>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Soe Tint Aung]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 07:42:49 GMT</pubDate>
            <atom:updated>2024-03-03T07:42:49.332Z</atom:updated>
            <content:encoded><![CDATA[<p>DevOps အကြောင်းသိကောင်းစရာ</p><p>(EduGallant Academy မှ နည်းပညာသစ်များ လေ့လာလိုသူများအတွက် DevOps အကြောင်းသိကောင်းစရာ နည်းပညာဆောင်းပါးများကို ဖော်ပြပေးသွားမှာဖြစ်ပါသည်။)</p><p>DevOps အကြောင်းသိကောင်းစရာ (အပိုင်း ၁)</p><p>၂၀၂၂ အတွက် IT နည်းပညာဈေးကွက်မှာ Job Demand အများဆုံး ကိုသိရှိဖို့ Google မှာ The Most In-Demand Tech Jobs for 2022 လို့ ရိုက်ကြည့်ပြီး ရှာဖွေကြည့်ခဲ့ပါတယ်။ ကိုးကားထားသော Ref: Link အဲဒီမှာ DevOps Engineer က No. 1 နေရာမှာရှိ နေတာ တွေ့ရှိရပါတယ်။</p><p>DevOps ဆိုတာဘာလဲ၊ DevOps က ဘာကြောင့် In Demand ဖြစ်လာတာလဲ၊ DevOps ကို IT Environment မှာဘယ်လို အကျိုးရလာဒ် တွေရှိနိုင်လို့ပြောင်းလဲအကောင်အထည်ဖော်လာကြတာလဲ စတဲ့ မေးခွန်းတွေပေါ်လာခဲ့ ပါတယ်။</p><p>ဒီမေးခွန်းတွေကိုအဖြေရှာကြည့်ရင်းနဲ့ ဒီဆောင်းပါးရေးဖို့ စိတ်ကူးဖြစ်လာခဲ့ပါတယ်။ ဒီဆောင်းပါး ကို IT သမားများ သာမက IT ပညာရပ်ကို အသင့်အတင့် နားလည်သူတွေပါ နားလည်လေ့လာနိုင်ဖို့ အရိုးရှင်းဆုံး ဉပမာ များနှင့် ရေးသားတင်ပြသွားပါမည်။</p><p>DevOps ဆိုတာဘာလဲ</p><p>IT နည်းပညာရပ်မှာ အသစ်အသစ်သော နည်းပညာတွေဟာအချိန်နှင့်အမျှတိုးတက် ပြောင်းလဲ ပေါ်ပေါက် နေပါတယ်။ အဲဒီ နည်းပညာရပ်တွေကပဲ လူတွေရဲ့ လူနေမှုဘဝ လုပ်ငန်း ပတ်ဝန်းကျင်တွေကို ပိုမို အဆင်ပြေ လွယ်ကူ သက်တောင့် သက်သာရှိစေရန် ပြောင်းလဲဆောင်ရွက်ပေးသွားကြပါတယ်။</p><p>တစ်ဖတ်က ကြည့်ရင်လည်း IT နည်းပညာသမားတွေဟာ အသစ်သစ်သော နည်းပညာတွေ ကို ဖန်တီး ရသလို၊ အသစ်သစ်သော နည်းပညာတွေရဲ့ နောက်ကို လိုက်ပြီး စဉ်ဆက်မပြတ် ဆည်းပူးလေ့လာ နေရပါတယ်။</p><p>IT နည်းပညာရဲ့ နည်းစနစ် Methodology တွေ Concept သိရှိအောင် လုပ်ရသလို၊ နည်းပညာရပ် အသစ်တွေကိုကျွမ်းကျင်စွာ အသုံးချဆောင်ရွက်နိုင်သော ကျွမ်းကျင်မှု Skill တွေရအောင်လည်း အမြဲဖြည့်ဆည်း နေကြရပါတယ်။<br> <br>DevOps ဆိုတာဘာလဲ ၊ DevOps ဆိုတာ နည်းပညာရပ်နည်းစနစ် (Methodology) အသစ် တစ်ခုလား၊ သို့မဟုတ် DevOps ဆိုတာ Programming Language တွေလို Database တွေလို ကျွမ်းကျင်မှု (Skill) ပညာရပ် အသစ်တစ်ခုလား လို့ မေးစရာ ရှိပါတယ်။</p><p>အဖြေကတော့ DevOps ဆိုသော Software တစ်ခု တီထွင်ဖန်တီးဖို့ လုပ်ဆောင်ရသော လုပ်ဆောင်ချက် အလေ့အထ Culture အသစ်တစ်ခုပါလို့ ဖြေရင် ပိုမို မှန်ကန်နိုင်မည် ဖြစ်ပါတယ်။</p><p>DevOps ကို နားလည်ဖို့ အရှင်းဆုံး ဥပမာပေးရလျှင် –</p><p>ကွန်ပျူတာ Software တွေကို ဖန်တီးကြတဲ့အခါမှာ ဆောင်ရွက်ရသော အခန်းကဏ္ဍ ၂ ခု ရှိပါတယ်။ တစ်ပိုင်း က အဲဒီ Software ကို တီးထွင်ရေးသားဖန်တီးမှု “Development Environment” အပိုင်းနှင့် နောက်တစ်ပိုင်းက တော့ အဲဒီ Software မှန်ကန်စွာ အလုပ်လုပ်နိုင်ဖို့ ချိတ်ဆက်ဆောင်ရွက်ရသောအပိုင်း “Operation Environment” အပိုင်း ဆိုပြီး ၂ ပိုင်းခွဲခြားလုပ်ကိုင်ကြရပါတယ်။</p><p>Software ကို တီထွင်ရေးသားဖန်တီးသူ Software Developer တွေဟာ Software Design များရေးဆွဲပြီး Program Coding များ ဖန်တီးရေးသားကြရပါတယ်၊ အဲဒီအပိုင်းကို Development Environment အပိုင်းလို့ ခေါ်ကြပါတယ်။</p><p>နောက်ထပ်အဖွဲ့ တစ်ဖွဲ့ ကတော့ Software Developer တွေရေးသားထားတဲ့ Software System တွေကို အမှားမရှိအောင် အမှားရှာခြင်းများ (Debugging) ဆောင်ရွက်ပြီး အလုပ်လုပ်နိုင်သော Software စနစ်တစ်ခု ဖြစ်လာစေဖို့ ချိတ်ဆက်ပေးခြင်း (Deployment) ကို လုပ်ဆောင်ရွက်ကြရပါတယ်။ အဲဒီအပိုင်းကိုတော့ Operation Environment က လုပ်ဆောင်ပေးကြရပါတယ်။</p><p>Software များတီထွင်ဖန်တီးကြ သည့် နည်းပညာကုမ္ပဏီတွေမှာ Development Team နှင့် Operation Team တွေ ဟာ ပူးပေါင်း လုပ်ဆောင်ကြရသော်လည်း သီးသန့်စီ လုပ်ဆောင်ကြရပါတယ်။<br> <br>နောက်ပိုင်းလူသုံးများ သော Software များဟာ အသုံးပြုနေရင်း မှာပဲ သုံးစွဲသူတွေရဲ့ လိုအပ်ချက်အသစ်တွေ ကို ထပ်မံ ဖြည့်စွက် ပေးဖို့လိုအပ်လာပါတယ်။ တစ်နည်းအားဖြင့် Software Version မြှင့်ဖို့ လိုအပ်လာတာမျိုး ရှိလာခဲ့ပါတယ်။</p><p>Software တွေကို New Version မြှင့် တဲ့အခါမှာ Development Team ဟာ လိုအပ်လာ သော Functions များကို ထပ်မံ ဖန်တီးရေးသားကြရပါတယ်။</p><p>Software Version အသစ် ကို Version အဟောင်း အသုံးပြုနေသော Software မှာ မူလ အလုပ်များ အဟန့်အတား မဖြစ်စေပဲ ချိတ်ဆက်အသုံးပြုနိုင်အောင် Operation Team ကဆောင်ရွက်ပေး ရပါ တယ်။</p><p>ဒီလို ဆောင်ရွက်ခြင်းကို နည်းပညာဝေါဟာရ နှင့် ပြောရလျှင် (CI/CD) (Continuous Integration (CI), and Continuous Delivery (CD)) လို့ သုံးစွဲပါတယ်။ ဒါလိုဆောင်ရွက် တာကို Agile Process လို့လည်း ခေါ်ကြပါတယ်။<br>DevOps ဆိုတာ Development Team နှင့် Operation Team တို့ ပူးပေါင်းပြီး ပိုမိုလျှင် မြန်လွယ်ကူ စွာ ပူးပေါင်း ဆောင်ရွက်ရန် လုပ်ဆောင်သော လုပ်ဆောင်မှု ပုံစံ (Culture) တစ်ခု ဖြစ်ပါတယ်။</p><p>နည်းပညာအခြေပြု Company တွေဟာ မိမိတို့ Organization အတွက် လုပ်ဆောင်နေ သော Software System များကို အချိန်ကုန်သာသက်ခြင်း၊ အမှားနည်းခြင်း၊ ထပ်ခါထပ်ခါ လုပ်ဆောင် ရသောအလုပ်များလျော့ချနိုင်ခြင်း၊ လုပ်ဆောင်ရမည့် အလုပ်များ အလို အလျောက် ချိတ်ဆက်ဆောင်သွားနိုင်ခြင်း ၊ လုပ်ငန်းများစီမံခန့်ခွဲမှု ပိုမိုလွယ်ကူ လာခြင်း စသည့်အချက်များကြောင့် DevOps Culture သို့ ပြောင်းလဲလုပ်ဆောင်ဖို့ ပိုမိုစိတ်ဝင်စား လာ ခဲ့ကြပါတယ်။</p><p>DevOps Culture ကိုဆောင်ရွက်နိုင်ဖို့ ပံ့ပိုးကူညီသော Platform အမျိုးမျိုး ပေါ် က Tools အမျိုးမျိုးလည်း ပေါ်ပေါက်လာခဲ့ကြပါတယ်။ အဲဒီ Tools တွေကို ကျွမ်းကျင်စွာ အသုံးပြုပြီး Software System တွေကို DevOps Culture ဖြစ်အောင် ကူညီဆောင်ရွက်ပေးသူနိုင်တွေကိုတော့ DevOps Engineer တွေလို့ ခေါ်ပါတယ်။</p><p>DevOps အကြောင်းသိကောင်းစရာ အပိုင်း (၂)</p><p>IT Industry ရှိ Organization များမှ Chief Information Officer (CIO) များအနေဖြင့် မိမိတာဝန်ယူရသော အဖွဲ့အစည်း၏ IT Development and Operation Environment တွင် လုပ်ဆောင်နေသော Software Applications နှင့် Services လုပ်ငန်းများအား DevOps Environment Culture သို့ ပြောင်းလဲရန်အတွက် DevOps Implementation Roadmap များပြင်ဆင်ဆောင်ရွက်ရပါမည်။ အဆိုပါ Roadmap အဆင့်များကို DevOps အပိုင်း (၂) မှာ ဆွေးနွေးသွားပါမည်။<br> <br>(၁) Organizing the DevOps Initiative</p><p>သက်ဆိုင်ရာ Organization ရှိ တာဝန်ယူသူထားသော CEO များ CIO များ အနေဖြင့် မိမိတို့ IT Environment ကို DevOps Culture သို့ ပြောင်းလဲရန် ပထမဉီးစွာ DevOps ရဲ့ အကျိုးရလာဒ် Benefits များကို သိရှိနားလည် လက်ခံပြီး စိတ်အားထက်သန်စွာဖြင့် ပြောင်းလဲဆောင်ရွက်လိုသော ဆန္ဒရှိရမှာဖြစ်ပါသည်။</p><p>တစ်ဖက်မှလည်း DevOps Culture သို့ ပြောင်းလဲရန် နည်းပညာပိုင်းဆိုင်ရာ ကြိုတင်ပြင်ဆင်ခြင်း၊ ကြိုးပမ်း အားထုတ်ခြင်း၊ နည်းလမ်းရှာဖွေခြင်း၊ Cost and Effectiveness အကျိုးကျေးဇူးများကို သိရှိပြီးစတင် အကောင်အထည်လိုသော စိတ်ဆန္ဒ ရှိကြရန် လိုအပ်ပါသည်။</p><p>DevOps Initiative အတွက် မိမိ Organization ရဲ့ IT activity များနှင့် လိုအပ်သော Infrastructure facilities ပြည့်စုံအောင်ပြင်ဆင်မှု ၊ Skillful human resources ရှာဖွေခြင်း နှင့် လေ့ကျင့်ပေးခြင်း စသည်များအား ပြင်ဆင် ဆောင်ရွက်ထားရန်လည်း လိုအပ်ပါသည်။</p><p>(၂) Building the DevOps Strategy</p><p>DevOps Culture ပြောင်းလဲဆောင်ရွက်ဖို့ နောက်ထပ် အရေးကြီးသော လမ်းစဉ်အနေဖြင့် နည်းဗျူဟာ (Strategy) များချမှတ်ဆောင်ရွက်ရမည်ဖြစ်ပါသည်။</p><p>ဉီးဆောင်လုပ်ကိုင်မည့် CIO နှင့် အကောင်အထည်ဖော် လုပ်ဆောင် ကြမည့် IT Team members များအနေဖြင့် စိတ်ကူကိုယ်တူ ပူပေါင်း လုပ်ဆောင်လိုသော ဘုံသဘောထား (Common Goal) တူညီမှု ရှိရန်လည်းလိုအပ်ပါသည်။</p><p>DevOps ကို သေချာနားလည်ရန်၊ Mindset ရရှိရန်၊ DevOps Culture ကို ပြောင်းလဲမှုရဲ့ အကျိုးရလာဒ်ကို သိရှိနေစေရန်၊ ပြောင်းလဲမှုအတွက် Risk အနည်းဆုံးဖြစ်ရေး အစီအစဉ် စသည့် Strategy များချမှတ်ရပါမည်။</p><p>(၃) Containerization</p><p>DevOps Culture အတွက် လိုအပ်သော နည်းပညာတစ်ခုကတော့ Containerization ဖြစ်ပါတယ်။ Containerization Technology ဆိုတာ Virtualization Technology နှင့် သဘောတရား ဆင်တူပါတယ်။ <br> <br>Virtualization Technology မှာ သက်ဆိုင်ရာ Host Hardware နှင့် Operating System ပေါ်တွင် Virtualization ကို လုပ်ဆောင်ပေးနိုင်သော Hypervisor ပေါ်မှ Virtual Machine များဖန်တီးကာ မတူညီသော Operation System မျာ နှင့် Application Systems များကို independently လုပ်ဆောင်နိုင်ခြင်းဖြစ်ပါသည်။<br> <br>Containerization Technology ကတော့ ပိုမိုရိုးရှင်းပါတယ်။ Containerization Technology ၏ Container Engine (ဥပမာ – Docker Engine) ပေါ်မှ Multiple Application Instances တွေ ကို independently လုပ်ဆောင်နိုင်သော နည်းပညာဖြစ်ပါတယ်။</p><p>DevOps Culture အတွက် Containerization Technology ကို ကျွမ်းကျင်စွာ သိရှိ အသုံးချနိုင်ဖို့ ပြင်ဆင်ထားရန်လိုအပ်ပါမည်။</p><p>(၄) Integration Infrastructure automation with CI/CD Tools</p><p>CI/CD (Continuous Integration/ Continuous Delivery)Automation Process ကိုလုပ်ဆောင်နိုင်ခြင်း ဟာ DevOps ရဲ့ အဓိက လုပ်ငန်းစဉ်ဖြစ်ပါတယ်။ <br>အဆိုပါ CI/CD Automation Process လုပ်ဆောင်နိုင်မည့် Tools တစ်ချို့ ဖြစ်သော Jenkins, Docker, Bitbucket, GitLab, and GitHub စသည်များဟာ Developers တစ်ချို့အနေဖြင့် ရင်နှီးပြီးသား Tools များဖြစ်ပါသည်။</p><p>အဆိုပါ Tools များ အသုံးပြုပြီး Secure access credentials များဖြင့် ချိတ်ဆက်ကာ CI/CD Automation Process လုပ်ဆောင်နိုင်မည့် Infrastructure ဖန်တီး တည်ဆောက်ထားရန် မှာ DevOps ရဲ့ အရေးကြီးသော ပြင်ဆင်ဆောင်ရွက်မှုဖြစ်ပါသည်။ DevOps အတွက် Automation Tools များကို အောက်ပါ ပုံတွင် တွေ့မြင်နိုင်ပါသည်။</p><p>(၅) Increasing the Amount of Test Automation Aligning QA with development</p><p>DevOps ရဲ့ အရေးကြီးသော Process အပိုင်းမှာ Test Automation ရနိုင်အောင်ဆောင်ရွက်ပေးနိုင်ခြင်း ဖြစ်ပါတယ်။ Quality Assurance အတွက် ပိုမို မြန်ဆန် တိကျသော Test Automation/ Continuous Testing ဖြစ်ရန် ဆောင်ရွက်ရမည်ဖြစ်ပါသည်။</p><p>(၆) Ensuring Total Application performance monitoring</p><p>DevOps Environment ကို ပြောင်းလဲလုပ်ဆောင် လိုက်သော Application တစ်ခု အနေဖြင့် အမှန်တကယ် ပိုမို မြန်ဆန်လာခြင်း၊ အမှားအယွင်းနည်းခြင်း၊ တိကျမှန်ကန်လာခြင်းများ စသည့် Application Performance ကို စောင့်ကြည့်လေ့လာ မှတ်တမ်းပြု ရမှာ ဖြစ်ပါတယ်။</p><p>အထက်ပါ အဆင့် တွေဟာ DevOps Environment အဖြစ် ပြောင်းလဲ အကောင်အထည်ဖော် Implementation လုပ်ရမှာ လုပ်ဆောင်ရမည့် Roadmap တွေ ဖြစ်ကြောင်း လေ့လာတင်ပြလိုက်ပါတယ်။</p><p>DevOps Engineer အ​ကြောင်းသိ​ကောင်းစရာ (အပိုင်း ၃)</p><p>DevOps Engineer ၏ အရည်အချင်းများ (Essential Skills of DevOps Engineer)</p><p>၂၀၂၂ အတွက် IT နည်းပညာဈေးကွက်မှာ Job Demand အများဆုံး အမှတ်စဉ်(၁) နေရာမှာ ရှိသော DevOps Engineers များ၏ ရှိရမည့် Essential Skill များနှင့် ပတ်သတ်ပြီး အပိုင်း (၃) မှာ ဆက်လက်ဖော်ပြပေး သွားပါ မည်။</p><p>Professional Soft Skill များ</p><p>Professional တစ်ဉီး ဖြစ်လာစေရန်အတွက် အကြောင်းအရာတစ်ခုသိရုံ အချိန်တစ်နေ့တစ်မနက် လေ့လာရုံ နှင့် ဖြစ်မလာနိုင်ပါ။</p><p>Professional အဖြစ်သတ်မှတ်နိုင်ရန်မှာ သက်ဆိုင်ရာပညာရပ်နယ်ပယ်၌ Academic Degree/ Diploma များရရှိရန် ဉီးစွာလေ့လာသင်ကြားခဲ့ရန်လိုအပ်ပါသည်။</p><p>ထို့အပြင် နည်းပညာကျွမ်းကျင်မှုဆိုင်ရာ Certificates များကလည်း မိမိကျွမ်းကျင်မှုအရည်အချင်းကို ပိုမိုသိသာစွာအသိအမှတ်ပြု‌စေနိုင်ပါသည်။</p><p>Professional တစ်ဉီး ဖြစ်လာရန် မဖြစ်မနေလိုအပ်ချက် အရည်အချင်း မှာ လက်တွေ့လုပ်ငန်းခွင်အတွေ့အကြုံ ဖြစ်ပါသည်။ ထိုအရည်အချင်းကို Technical Knowledge/Skills and Hand-on Experience ‌များမှရရှိနိုင်ပါသည်။</p><p>သို့သော် အောင်မြင်သော Professional တစ်ဉီး ဖြစ်စေဖို့ အရေးကြီးသော Soft Skills များလည်း လိုအပ်ပါတယ်။</p><p>မိမိအတတ်ပညာနယ်ပယ်မှာ အများနှင့် ပူးပေါင်းညှိနှိုင်း ဆောင်ရွက်နိုင်မှုစွမ်းရည် (Cooperation/Coordination Skill) မှာ အရေးကြီး‌သော Soft Skill တစ်ခုဖြစ်ပါသည်။</p><p>ထို့အပြင် ရေရှည်ကိုမျှော်တွေးစီမံတတ်ခြင်း (Proactive) ကလည်း Professional တစ်ဉီး ရှိရမည့် အရည်အသွေးတစ်ခု ဖြစ်ပါသည်။</p><p>DevOps Engineer ကလည်း Professional တစ်ဉီး ဖြစ်သည်မို့ အထက်မှာဖော်ပြခဲ့သော Soft Skills များကလည်း မဖြစ်မနေ လိုအပ်သော အရည်အသွေးများ ဖြစ်လာပါသည်။</p><p>Technical Knowledge/Skills များ</p><p>DevOps Engineer တစ်ဉီးအတွက် လိုအပ်သော Technical Knowledge/Skills တွေကတော့ များပါသည်။ ဘတ်စုံ နားလည်ကျွမ်းကျင်သူဖြစ်ရန်လိုအပ်ပါသည်။</p><p>(၁) System Administration Skill</p><p>ပထမ Technical Skill ကတော့ Organization တစ်ခု ရဲ့ IT Infrastructure ကို စီမံနိုင်သော System Administration ကျွမ်းကျင်ရန်လိုအပ်ပါသည်။ ပိုမိုတိကျစွာ ပြောရလျှင် Linux (or) Unix Operating System ၏ Administration နားလည်သူဖြစ်ရန်လိုအပ်ပါသည်။</p><p>(၂) Network and Storage Management Skill</p><p>DevOps Engineer တစ်ဉီး အနေဖြင့် Organization ၏ Network ချိတ်ဆက်ထားရှိမှု၊ File System များ ချိတ်ဆက်ထားမှု၊ Storage Structure တည်‌ဆောက်ထားရှိမှု စသည်များကို ကောင်းစွာသိရှိနားလည်သူ ဖြစ်ရန်လိုအပ်ပါသည်။</p><p>(၃) Cloud and Virtualization Skill</p><p>တစ်ချို့သော Organization များအနေဖြင့် မိမိတို့ လုပ်ငန်းအဖွဲ့အစည်း အတွက် IT Infrastructure ကို Cloud Infrastructure ပေါ်တွင် တည်‌ဆောက်ထား‌ရှိ‌လေ့ရှိသည့်အတွက် Cloud Infrastructure နှင့် Virtualization Technology များကို နားလည် သိရှိနားလည်မှသာ မိမိ Organization ၏ Cloud-based IT Infrastructure ကို စီမံ ဆောင်ရွက်နိုင်မည်ဖြစ်ပါသည်။</p><p>(၄) Security Awareness</p><p>ထို့အပြင် Organization IT System ၏လုံခြုံရေးဆိုင်ရာအစီအစဉ်များ (Security Aspects) ကို ‌နားလည်သိရှိကာ DevOps Environment ၏ Continuous Integration/Continuous Delivery (CI/CD) လုပ်ငန်းစဉ်တွင် Component တစ်ခု နှင့်တစ်ခု မနှောက်ယှက်စေပဲ Secure System အဖြစ် အောင်မြင်စွာလုပ်‌ဆောင်နိုင်ရန် အတွက် စီမံဆောင်ရွက်နိုင်ရမည်ဖြစ်ပါသည်။</p><p>ဒါတွေကတော့ DevOps Engineer တစ်ဉီး ရှိရမည့် Cloud, Network, Storage, Security ဆိုင်ရာ Technical Skill များဖြစ်ပါသည်။</p><p>(၅) Code/ Script Writing Skill</p><p>ထို့အပြင် DevOps Engineer တစ်ဉီးဟာ Scripting Language များကို အသုံးပြုပြီး Code ရေးနိုင်သူဖြစ်ရန် လိုအပ်ပါတယ်။ အကြောင်းကတော့ DevOps ဟာ Infrastructure as a Code အနေဖြင့် System Administration လုပ်ဆောင်ရန်လိုအပ်သော လုပ်ငန်းဖြစ်သောကြောင့်ဖြစ်ပါသည်။</p><p>(၆) Testing Concept</p><p>DevOps ရဲ့ အခြေခံသ‌ဘောတရားဖြစ်သော Continuous Integration/Continuous Delivery (CI/CD) ကို Software များ Version မြှင့်ဆောင်ရွက်ရာတွင် System များ ပုံမှန်အတိုင်း လည်ပတ်ခြင်း ရှိ/မရှိ စိစစ်ရသော Testing လုပ်ငန်းစဉ်ကို လုပ်‌ဆောင်ကြရပါသည်။</p><p>သို့ဖြစ်ပါ၍ DevOps Environment တွင် Software Testing/ System Testing လုပ်ငန်းသည် အလွန် အရေးကြီးသော အခန်းကဏ္ဍမှပါဝင်ပါသည်။ DevOps Engineer တစ်ဉီးအ‌နေဖြင့် Testing Knowledge and Concept ကိုသေချာစွာ နားလည် သဘောပေါက်ရမည်ဖြစ်ပါသည်။</p><p>(၇) Knowledge of System Automation Tools</p><p>DevOps ရဲ့ အဓိက Logic သဘောတရား မှာ Continuous Automation လုပ်ငန်းများ အဖြစ်ပြောင်းလဲ ဆောင်ရွက် ပေးခြင်းဖြစ်ပါသည်။ အဲဒီ Automation Process များကို အဓိကလုပ်ဆောင်ပေးနိုင်သော System Automation Tools များကို ကျွမ်းကျင်စွာ အသုံးပြုဆောင်ရွက်နိုင်ခြင်း Skill က DevOps Engineer တစ်ဉီး အတွက် မဖြစ်မနေ ရှိသင့်သော အရည်အချင်းဖြစ်ပါသည်။</p><p>အများစုသော IT Engineer များအနေဖြင့် မိမိတို့ Organization မှ အသုံးပြုဆောင်ရွက်နေသော System Platform များပေါ်တွင် DevOps System Automation Tools များကိုကျွမ်းကျင်စွာအသုံးပြုနိုင်ရန် အားပြုဆောင်ရွက် လေ့ကျင့်လေ့ရှိကြပါသည်။</p><p>DevOps Engineer အဖြစ် လုပ်ဆောင်ရန် လုံလောက်ပြီလား</p><p>ဒီအရည်အချင်းအတွေ့အကြုံ‌များ မိမိမှာရှိပြီဆိုလျှင်တော့ မိမိ၏ Career Opportunity ကို DevOps Engineer တစ်ဉီးအဖြစ် ဆောင်ရွက်ရန်ပြည့်စုံပြီဖြစ်ပါသည်။ အရေးအကြီးဆုံး Skill ဖြစ်သော မိမိကိုယ်တိုင် အောင်မြင်‌ အောင် လုပ်ဆောင်လိုသည့် စိတ်အားထက်သန်မှုပါ ရှိလျှင်‌တော့ အောင်မြင်သော DevOps Engineer တစ်ဉီး ဖြစ်လာရန် ပိုမိုသေချာ သွားပါမည်။</p><p>#crd to edugallant</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e66e08769a6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continuous Delivery]]></title>
            <link>https://yoloxsta.medium.com/continuous-delivery-78bfaf1363d1?source=rss-80050d7b78e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/78bfaf1363d1</guid>
            <category><![CDATA[continues-deployment]]></category>
            <dc:creator><![CDATA[Soe Tint Aung]]></dc:creator>
            <pubDate>Sat, 02 Mar 2024 08:40:31 GMT</pubDate>
            <atom:updated>2024-03-02T08:40:35.553Z</atom:updated>
            <content:encoded><![CDATA[<p>Continuous Delivery</p><p>Continuous Delivery (CD) ရဲ့ process က CI ရဲ့ testing phase အပြီး artifact or docker image ကို generate အပြီးမှာ စပါတယ်။ <br>Continuous Delivery နဲ့ Continuous Deployment မှာ သိသိသာသာကွဲတာက production သွားတော့မယ့် step မှာ manual နဲ့ auto ဖြစ်သွားတာပါပဲ အဲ့ဒီအပိုင်းကို အောက်မှာ ဆက်ရှင်းပါမယ်။</p><p>လွယ်လွယ်မှတ်ချင်ရင် CD ကို production နဲ့ အနီးစပ်ဆုံးတူတဲ့ environment တွေ setup လုပ်ပေးပြီး Functional တွေ User Acceptance test တွေ စစ်ပေးတဲ့ process လို့ပြောလို့ရတယ်။ သူ့မှာလည်း automation က အသက်ပါပဲ။ အဲ့တော့ environment တွေကို setup ဘယ်လိုလုပ်သွားတာလဲ?</p><p>Environment setup ဆိုတာ server တွေ VM တွေ database တွေနဲ့ ကိုယ့် project run ဖို့လိုအပ်တဲ့ အရာတွေ အကုန်ပါတဲ့ computer တစ်လုံးကို create လုပ်တယ်လို့ပဲ ဆိုပါစို့။ ဒီနေရာမှာ မရှုပ်သွားဖို့က cloud ကိုသုံးနေတာဖြစ်တဲ့အတွက် hardware တွေကို စိတ်ပူစရာ မလိုပါဘူး ကိုယ်သုံးနေတဲ့ cloud provider က support ပေးပါလိမ့်မယ်။ Environment setup လို့ဆိုတာမှာ software ကိုပဲ ဆိုလိုတာဖြစ်ပါတယ်။</p><p>Continuous Delivery မှာ ဒီ environment တွေကို CD မသုံးခင်တည်းက ကြိုပြီး manual setup ထားတာဖြစ်နိုင်သလို CD စ run မှ automation tool တစ်ခုခုနဲ့ ဒီ environment ကြီးတစ်ခုလုံး create သွားတာမျိုးဆိုပြီး ၂ မျိုးရှိနိုင်ပါတယ်။ အဲ့လို automatically create သွားတဲ့ concept ကို Infrastructure as Code (IaC) လို့ခေါ်ပါတယ်။</p><p>CD ရဲ့ pipeline မှာ environment ဘယ်နှခုရှိနိုင်လဲဆိုပြီး standard မရှိပါဘူး ကိုယ့် project ရဲ့ လိုအပ်ချက်ပေါ်မူတည်ပြီး ကွဲနိုင်တယ်။ Production မရောက်ခင်ထိ အနည်းဆုံးတော့ staging environment တစ်ခုရှိပါတယ်။</p><p>CD process ပြီးလို့ create လုပ်ထားတဲ့ environment က သုံးမလိုတော့ရင် automatically ဖျက်ပေးတာကို dynamic environments လို့ခေါ်ပါတယ်။ Cloud မှာက resource တွေ မသုံးတော့ပဲ environment ကရှိနေရင် cost များတဲ့အတွက် ဒီလိုဖျက်နိုင်တာ က အဆင်ပြေတဲ့ feature တစ်ခုပါပဲ။</p><p>Continuous delivery ပြီးရင် production ကို deploy မလုပ်ခင် ကြားမှာ approval တစ်ဆင့် ခံထားလေ့ရှိပါတယ်။ Approve ဖြစ်မှ production ကို deploy ဆက်လုပ်ပါတယ်။ ဒီ deploy လုပ်တဲ့နေရာကစပြီး နောက်ပိုင်းမှာ deployment strategies အမျိုးမျိုးရှိနိုင်ပါတယ်။</p><p>Continuous deployment ကတော့ approval ခံထားတာမျိုးမရှိပါဘူး။ Deploy လုပ်ပြီးရင် notification ပို့တာမျိုးပဲရှိပါမယ်။</p><p>အဲ့တော့ CD ရဲ့ process ကို briefly ကြည့်ကြည့်ရအောင်</p><p>📌 CD Process <br>- အရင်ဆုံး CI process မှာ build လုပ်ခဲ့တဲ့ docker image or artifact ကို အရင် pull လုပ်တယ်။</p><p>- Project ရဲ့ artifact ရတာနဲ့ environment setup စလုပ်ပါတယ်။ IaC သုံးရင်တော့ ဒီ step မှာ Terraform လို tool တစ်ခုခုသုံးပြီး environment ကို auto setup နဲ့ configuration စလုပ်ပါတယ်။</p><p>- Environment ready ဖြစ်ရင် pull ထားတဲ့ artifact ကိုစပြီး deploy လုပ်ပါတယ်။</p><p>- ဒီ step မှာတော့ User Acceptance Test တွေ functional test တွေစ run နေပါပြီ။ Unit နဲ့ Integration က CI မှာ pass ခဲ့ပြီးတာဖြစ်တာကြောင့် ဒီ step မှာတော့ project က business flow အတိုင်း run နေရဲ့လားဆိုတာကို UI ဘက်ကနေ automate လုပ်ပြီး စစ်တာဖြစ်ပါတယ်။ များသောအားဖြင့် Selenium သုံးပြီးရေးထားတဲ့ test case တွေ run ကြပါတယ်။</p><p>- လိုအပ်ရင် လိုအပ်သလို manual ဝင်စစ်တာမျိုး၊ client ကကြည့်ချင်ရင် ဒီ step မှာ run ပြလို့ ရပါတယ်။</p><p>- UAT run ပြီးတဲ့အခါ performance test တွေဆက် run ပါတယ်။ Performance ကို monitoring လုပ်တဲ့ tools တွေလည်း သုံးနေပါပြီ။</p><p>- Testing တွေ pass ပြီးရင်တော့ production ကို ဆက် deploy ဖို့ ready အနေအထား ရှိနေပါပြီ။ ဒီ step မှာ approve ဖြစ်တာနဲ့ production environment ကို deploy စလုပ်ပါပြီ</p><p>Production deploy တဲ့အခါမှာလည်း project နဲ့ client လိုအပ်ချက်အရ deployment strategies တွေ အမျိုးမျိုးရှိပါတယ်။ အဲ့ဒီ strategy တွေအကြောင်း နောက်မှ သက်သက်ရေးပါဦးမယ်။</p><p>CD က လွယ်လွယ်ပြောရင် environment တစ်ခုပြီးတစ်ခု deploy/ release လုပ်ပြီး test လုပ်သွားတာပဲလို့ မြင်လို့ရပေမယ့် အဲ့ဒီ process အားလုံးကို automate လုပ်သွားတဲ့ Infrastructure as Code, Automated Testing, Monitoring အဲ့ဒီဟာတွေက သူ့ထဲပါဝင်နေတဲ့ core concept တွေပါပဲ။</p><p>ဒီ post မှာတော့ CD ကို overview သဘောမျိုး briefly ပဲပြောနိုင်ပါတယ်။ Project က ရှုပ်ရင်ရှုပ်သလောက် CD ရဲ့ flow လည်းပိုရှုပ်နိုင်ပါတယ်</p><p>🧑🏻‍💻 Written by &lt;YeMin-Dev /&gt;<br>#cicd</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78bfaf1363d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continuous Integration]]></title>
            <link>https://yoloxsta.medium.com/continuous-integration-dcebc01f792b?source=rss-80050d7b78e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcebc01f792b</guid>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Soe Tint Aung]]></dc:creator>
            <pubDate>Sat, 02 Mar 2024 08:38:37 GMT</pubDate>
            <atom:updated>2024-03-02T08:38:37.233Z</atom:updated>
            <content:encoded><![CDATA[<p>Continuous Integration</p><p>Continuous Integration ကို CI လို့ အတိုကောက် ခေါ်ကြပါတယ်။ CI/ CD ဆိုပြီး တွဲပြီး ကြားဖူးကြမှာပါ CD ကတော့ continuous deployment/ delivery ကိုဆိုလိုတာဖြစ်ပါတယ်။ ဒီ post မှာတော့ CI က CD မပါပဲလည်း သူချည်းသက်သက် အလုပ်ဖြစ်နိုင်ကြောင်းနဲ့ CI ရဲ့ flow ကို ပြောသွားပါမယ်။</p><p>အဓိက CI ရဲ့ first step ကတော့ code ပေါင်းတာဖြစ်ပါတယ်။ Developer တွေ ၂ ယောက်ထပ်ပိုပြီး repository တစ်ခုကို တစ်ရက်မှာ အကြိမ်ရေများစွာ code တွေ commit နေပြီး manual testing မနိုင်တော့ဘူးဆိုရင် CI ကို စသုံးဖို့ လိုအပ်လာပါတယ်။</p><p>CI ကို သုံးဖို့အတွက် tools တွေ အမျိုးမျိုးရှိပါတယ် company တစ်ခုနဲ့တစ်ခုလည်း သုံးတာတွေချင်းမတူနိုင်ဘူး ဒါပေမယ့် သူတို့ရဲ့ flow ကတော့ ကိုယ် configure လုပ်ထားတဲ့အပေါ်ပဲ မူတည်နေမှာပါ။ Popular အဖြစ်ဆုံး CI tool ကတော့ Jenkins ဖြစ်ပြီး နောက်ပိုင်း GitHub Action ကိုလည်း သုံးလာကြပါတယ် နောက်ထပ်အများကြီး ရှိပါသေးတယ် ဒီမှာတော့ list မရေးပြတော့ပါဘူး။</p><p>ယေဘုယျအားဖြင့် CI pipeline မှာ Build -&gt; Test -&gt; Result ဆိုပြီးရှိတယ်။ ဘယ်လိုပဲ configuration တွေကွဲပါစေ ဒီ step တွေကတော့တူတူပါပဲ။ အဲ့လို step by step automate လုပ်သွားရအောင် CI tool မှာ configuration လုပ်ရတယ် များသောအားဖြင့် YAML file နဲ့လုပ်ပါတယ်။</p><p>အရင်ဆုံး build process အတွက် configuration file ထဲမှာ code ကို repository ထဲ commit တင်တာနဲ့ build မလား pull request ကို merge မှ build မလား ရေးပေးလို့ရတယ်။ Build ပြီးရင် testing တွေ သူ့ဘာသူ automate ပြီး run မယ်၊ တစ်ခုခု fail ရင် developer ဆီ notification ပို့ပေးမယ်။ Email နဲ့လည်းပို့သလို Slack chat ကနေလည်း ပို့အောင် လုပ်နိုင်ပါတယ်။</p><p>သူ့ရဲ့ pipeline flow ကို အသေးစိတ် ကြည့်ကြည့်ရအောင်</p><p>📌 CI Pipeline Flow<br>- First step အနေနဲ့ CI tool က repository ပေါ်မှာ code update ရှိမရှိ check ပါလိမ့်မယ်။ အဲ့ဒါက အပေါ်ကပြောတဲ့ commit တင်တိုင်းလား branch ကို merge မှလား configure ထားတဲ့ build script အပေါ်မူတည်ပါတယ်။</p><p>- Code update တွေ့တာနဲ့ compile လုပ်ပြီး build စလုပ်ပါတယ်။ ဒီ step မှာ project build fail ရင် developer ကို notify လုပ်နိုင်ပါတယ်။</p><p>- Build ပြီးတာနဲ့ testing စလုပ်ပါပြီ။ Testing တွေကတော့ Unit Test, Integration/ Functional Test, Regression Test အကုန်ပါဝင်နိုင်တယ် အားလုံး တစ်ခုပြီးမှ တစ်ခုဆက် run ကြပါတယ်။ (Testing တွေအကြောင်း အသေးစိတ် နောက်မှ ထပ်ရေးပါဦးမယ်)</p><p>- Testing phase မှာ code quality စစ်တဲ့ step လည်း ပါနိုင်ပါတယ်။ ဒီ step ကတော့ SonarQube or ESLint တစ်ခုခုသုံးပြီး ကိုယ်ရေးတဲ့ code ရဲ့ quality ကို auto စစ်ပေးပါလိမ့်မယ်</p><p>- Testing တွေအားလုံး pass ပြီးတဲ့အခါ ကိုယ်က docker သုံးထားရင် docker image build လုပ်ပေးပြီး အဲ့ဒီ image ကို image registry ပေါ် တင်ပေးပါလိမ့်မယ်။ Docker မသုံးရင်လည်း deploy လုပ်ဖို့အတွက် artifact ကို ready အနေအထား တစ်နေရာရာမှာ store လုပ်ဖို့ configure လုပ်ထားနိုင်ပါတယ်။ ကိုယ့် project က Continuous Delivery ပါသုံးနေရင်တော့ CD ရဲ့ flow က ဒီ testing အပြီးမှာ စပါလိမ့်မယ် (CD အကြောင်း သက်သက်ထပ်ရေးပါမယ်)</p><p>- နောက်ဆုံးကတော့ test results တွေ notification ပို့တဲ့ step ပါပဲ။ ဒီ notification ကို test case တစ်ခု fail တိုင်း ပို့အောင် setup လုပ်နိုင်သလို test တွေ အားလုံး pass ပြီးမှ ပို့အောင်လည်း configure လုပ်နိုင်ပါတယ်။</p><p>အပေါ်ကပြောခဲ့တဲ့ developer code ကို commit တင်တဲ့ အချိန်ကလွဲလို့ test results ရတဲ့အထိ step အားလုံးက automatically run သွားတာဖြစ်ပါတယ်။</p><p>အဲ့တော့ tester တွေ မလိုတော့ဘူးလား? <br>Tester တွေ QA Engineer တွေက လိုပါသေးတယ်။ သူတို့ရဲ့ responsibility က manual test လုပ်တာတွေကနေ ဒီ CI pipeline မှာ run မယ့် testing တွေအတွက် test case ရေးရတာမျိုး ဖြစ်သွားပါတယ်။ Unit test ကတော့ developer တွေရေးကြတာများပြီး Functional, E2E test တွေကတော့ QA တွေက scenario အမျိုးမျိုးနဲ့ အကုန် cover ဖြစ်အောင်ရေးရပါတယ်။</p><p>CI သုံးလိုက်တာနဲ့ human mistakes ကြောင့် လွတ်သွားတဲ့ scenario တို့ မစစ်လိုက်ရတာတို့ မရှိသလောက်ဖြစ်သွားတယ်၊ new code ကို merge လိုက်တိုင်း project တစ်ခုလုံး auto စစ်ပေးနေတဲ့ system ရှိသွားတာကြောင့် တစ်ခုခု အလုပ်မလုပ်တော့တာမျိုး စိတ်မပူရတော့ဘူး။ လူကိုယ်တိုင် ဒီ function တစ်ခုကို ထပ်တလဲလဲ စစ်နေရတဲ့ boring task ကြီးပျောက်သွားပါတယ်။</p><p>ကိုယ့်ရဲ့ side project လေးမှာ CI ကိုစမ်းချင်ရင် GitHub action နဲ့ အရင်စမ်းနိုင်ပါတယ် အများဆုံး လုပ်ရမှာကတော့ test case ရေးတာတွေ ပဲဖြစ်လိမ့်မယ်။ Development ကနည်းပြီး test case တွေရေးဖို့ အချိန်ပိုပေးရပါမယ်။</p><p>Post ကို အရမ်းရှည်ပြီး မရှုပ်သွားအောင် CD ကို နောက်မှ သက်သက်ခွဲပြီး ပြောပါမယ်။</p><p>🧑🏻‍💻 Written by &lt;YeMin-Dev /&gt;<br>#cicd</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcebc01f792b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>