บันทึก SonarQube กับ .NET6

ช่วงนี้เป็นการ Re-Cap งาน Migrate จาก .NET4.7.2 > .NET6 ตัว Blog ช่วงนี้ จะมาแนวๆนี้เยอะหน่อยครับ ^__^ การเตรียมข้อมูล – Test Report – Test Coverage – Sonar Scanner .NET คำสั่งทั้งหมด Reference

ช่วงนี้เป็นการ Re-Cap งาน Migrate จาก .NET4.7.2 > .NET6 ตัว Blog ช่วงนี้ จะมาแนวๆนี้เยอะหน่อยครับ ^__^ การเตรียมข้อมูล – Test Report – Test Coverage – Sonar Scanner .NET คำสั่งทั้งหมด Reference

Explore infrastructure as code and configuration management Manual deployment Infrastructure as code Snowflake servers.Snowflake = unique configuration that cannot be reproduced (ทำซ้ำไม่ได้)โดยจะได้ตัว configuration drift A consistent server between environments. Deployment steps vary by environment.อันนี้จริง VM > Container ถึงเกิดมาแก้ปัญหานี้ Environments are created or scaled easilyconfigurations to be More verification steps and more elaborate manual processes.จริง ตอนทำงานต้องตรวจ และจด Click + เยอะเหมือนกัน Fully automated creation of environment Updates.ทำ Script มา Check ได้ Increased documentation to account for differences. Transition to immutable infrastructure.มันเป็น Code/Script Run ยังไง – ผลลัพธ์เหมือนเดิม – และ version-controlled ได้ Deployment on weekends to allow time to recover from errors. Use blue/green…

จาก Blog ตอนก่อนที่มีความสงสัยว่าทำไมขนาด Image ของ Container มันโต จึงได้ลองด้วย Podman history เพื่อตรวจสอบไป docker history ก็ใช้งานได้นะ แล้วที่นี่มาเจอคำสั่งที่ทำให้ Layer มันเพิ่มขึ้นแบบงงๆ ตามรูปครับ มันเกิดอะไรขึ้น ? รีดไขมัน – ปัญหาที่ 1: คำสั่ง chown / chown มีเนื้อที่เพิ่มมาแบบงงๆ – ปัญหาที่ 2: คำสั่ง yum install มีเนื้อที่เพิ่มมาแบบงงๆ จากที่แก้ปัญหาที่ 1 และ 2 แล้วลอง build image ใหม่อีกรอบ มาตรวจขนาดกันครับ ลดลงแล้วครับ ^___^ 3.15 GB เหลือ 2.32 GB หลายไป 800 MB ครับ

วันนี้ได้ช่วยทีมแก้ปัญหาพิเศษมา เป็นการ WebAPI ที่เป็น .NET Core 3.1 บน Windows Server 2012 พ2 (มัน EOS ในอีกไม่กี่วันครับ) ปัญหา ปัญหาตอน Start webapi ด้วยคำสั่ง เจอ Error Failed to load the dll: hostfxr.dll มันแปลกๆ นะ ลอง list runtime ดีกว่า ด้วยคำสั่ง ปรากฏว่าเจอ Error ใหม่ครับ 5555 The program can’t start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem สาเหตุ เท่าที่ดูจาก keyword hostfxr.dll / api-ms-win-crt-runtime-l1-1-0.dll is missing มากจากการที่ขาดตัว Visual C++ Redistributable for Visual Studio 2015 ปล ถ้ามี Visual C++ Redistributable for Visual Studio 2015 อยู่แล้วลอง Repair การแก้ไข ติดตั้ง Visual C++ Redistributable for Visual Studio 2015 Restart และลอง Start webapi ใหม่อีกรอบ Reference…

Introduction to deployment patterns Implement blue-green deployment and feature toggles Implement canary releases and dark launching Implement A/B testing and progressive exposure deployment Integrate with identity management systems Manage application configuration data Reference


จริงๆตอนแรกไม่ได้ตั้งใจจะเขียน Blog ครับ ว่าจะอ้างอิง Blog เดิมๆ ที่เขียนไว้ แต่ทว่ามีการเปลี่ยนแปลงไปเลยคิดว่ามา Update ดีกว่า โดยแผนของผม ปีไหนบ้างที่ชง วัดทิพยวารีวิหาร (วัดกัมโล่วยี่) วัดมังกรกมลาวาส (วัดเล่งเน่ยยี่) – ดันเจี้ยนวัดมังกร อื่นๆ หลังจากแก้ชงเสร็จทำตามแผนครับ สรุป Reference

Reference (พลังงานของแต่ละเมนู)

มาถึง Part Continuous Deployment แล้วครับ แต่จริงแล้วหลาย Feature ถ้าลองใน Lab ของบทก่อนหน้า เราได้เล่นเรียบร้อยแล้วครับ Introduction to continuous delivery Create a release pipeline Explore release recommendations Provision and test environments Manage and modularize tasks and templates Automate the inspection of health อื่นๆ – Azure DevOps Integration – Chef & Puppet Reference

Blog นี้เกิดจากได้ข่าวว่าทาง Thai Smile ให้ขึ้นรถเมล์ฟรี ในช่วง 31-DEC-2022 และ 1-JAN-2023 ครับ เลยว่าจะลองนั่งสาย 4-41 วนซ้าย และขวาแหละ วันละรอบเลย และ โดยเส้นทางวนซ้าย ขวามี Keyword ดังนี้ //จดไว้เผื่อตอนนั่งมาทำงานจริงจะได้ไม่ขึ้นผิดฝั่ง 4-41L (57L) วนซ้าย บางขุนนนท์-ท่าพระ-ท่าเรือคลองสาน 4-41R (57R) วนขวา พาต้า ศิริราช คลองสาน ท่าพระ สำหรับการนั่งรถเมล์ และดูวิวรอบๆไป ก็นั่งดูซีรีย์ ดาราจักรรักลำนำใจ (Love Like the Galaxy) / ดู NET Conf 2022 ยาวๆไป โดยกำหนดปลายทางเซนทรัลปิ่นเกล้าในตอนขากลับ 5555 สรุปได้และตอนไปทำงาน นั่งวนขวา ลงอิสรภาพ / ขากลับนั่งวนซ้าย เกร็ดและกันไม่รู้จะใส่หัวข้ออะไร วัน เที่ยวแรก เที่ยวสุดท้าย วันธรรมดา 5.20 6.00 วันหยุด 19.00 18.30 Reference