2023 Huawei Product Evaluation Officer - Voice of Developers + HUAWEI CLOUD CodeArts Trial Experience Experience

Foreword - Activity Introduction

Participate in HUAWEI CLOUD CodeArts, HUAWEI CLOUD ModelArts, Kunpeng DevKit, Ascend CANN**, **Sense MindSpore, 5 product experience tasks from the "user perspective". There are 3 experience methods for you to choose from. They are entry experience, sample code, and free experience.

img

1. Introduction to HUAWEI CLOUD CodeArts

What is CodeArts?

CodeArts is a cloud-native DevSecOps platform launched by Huawei. It provides users with cloud services, out-of-the-box, and can perform demand management, code hosting, assembly line, code inspection, compilation and construction, deployment, testing, and product warehouse in the cloud anytime, anywhere. Let developers quickly and easily start the cloud development journey.
insert image description here

What are the components of CodeArts products?

insert image description here

What are the features of CodeArts?

From this experience, the main characteristics of my personal summary are as follows

Cloud IDE

  • Provides a cloud integrated development environment in the browser
  • Support multiple mainstream programming languages
  • Accelerate project development iterations
    insert image description here

Integrated DevOps

  • Provide complete CI/CD pipeline management
  • Automate testing, building and deploying
  • Intelligent operation and maintenance monitoring application status
    insert image description here

Resilient Environmental Management

  • Create and manage Kubernetes clusters with one click
  • Quickly deploy development, testing, and production environments
  • Elastic scaling of resources on demand

pay on demand

  • Billing based on actual resource usage and traffic
  • Flexible and on-demand use, saving costs
    insert image description here

2. Experience: CodeArts usage process

insert image description here

Step 1: Configure the project

insert image description here
insert image description here

Step 2. Quickly configure the code warehouse through Git

#安装并配置Git客户端。
git config  --global user.name "您的名字"
git config  --global user.email "您的邮箱"
#输入以下命令行,生成一对SSH密钥。生成的密钥通常保存在“~/.ssh/id_rsa.pub”中
ssh-keygen -t rsa -C "您的邮箱"
#输入以下命令可显示密钥内容。
cat ~/.ssh/id_rsa.pub
#单击“添加SSH密钥”,输入标题,将负责安装并配置Git客户端中生成的密钥粘贴到文本框中,勾选同意声明,单击“确定”。
#单击“克隆/下载”,复制仓库SSH下载链接。
#运行Git Bash,输入以下命令行,克隆云端仓库到本地
git clone 您仓库的SSH下载链接
#在本地完成代码的编辑后,在Git Bash中依次输入以下命令行,保存代码并推送到代码仓库。
git add .
git commit -m "您对本次提交备注的信息"
git push origin master

insert image description here

Step 3: Configure the pipeline

insert image description here

3. Experience: Use the software development production line to quickly build projects (ECS articles)

Environmental preparation

If conditions allow, you can rent the virtual machine directly, or you can apply for a virtual machine for free for one month. The amount released every day is limited, and the daily opening time is 9:30 in the morning , first come first served!
Free trial application channel: https://activity.huaweicloud.com/free_test/index.html
insert image description here

Step 1. Code Hosting

insert image description here

Step 2. Code inspection

insert image description here

Step 3. Build and archive the package

insert image description here
insert image description here

Step 4. Deploy the build package

insert image description here
insert image description here

Step 5. Configure the pipeline

insert image description here
insert image description here

4. Experience: Use the software development production line to quickly build projects (CCE articles)

The overall usage process is similar to ECS, and container-related content has been added

Environmental preparation

Purchase a CCE cluster
insert image description here
Create a node
insert image description here

Step 1. Code Hosting

insert image description here

Step 2. Code inspection

insert image description here

Step 3. Build and push the image

Add DockerFile to the code base

FROM openjdk:8-alpine
ADD target /demo
COPY ./target/demoapp.jar /demo
CMD ["java","-jar","/demo/demoapp.jar"]

insert image description here

insert image description here

Step 4. Create a load balancer

If there is no existing load balancer, you need to select "Shared > Automatically Create" and customize the instance name so that there will be a public network address to access
insert image description here

insert image description here

Step 5. Deploy the image

insert image description here

Step 6. Configure the pipeline to implement automatic update image deployment

insert image description here
insert image description here

5. Experience

advantage

1. The novice tutorial is easy to understand and easy to operate

The experimental case can be completed according to the novice navigation tutorial, and the overall use is very smooth.
CodeArts quick start page is as follows: https://support.huaweicloud.com/qs-devcloud/devcloud_qs_1000.html

2. One-stop DevOps

CodeArts provides a complete CI/CD pipeline function, which can realize automatic code building, testing and deployment with only simple configuration. From the experience case, it is very convenient to complete the whole process from development to launch.

3. Can simplify environmental management

Through the experience of CCE deployment cases, you can create and manage Kubernetes clusters with one click through CodeArts, so as to achieve rapid and elastic expansion of multiple environments such as development, testing, and production. This can also greatly simplify the management and scheduling of the cloud deployment environment.

4. Excellent visual operation experience

  • CI/CD pipeline visualization
    CodeArts provides a very clear CI/CD pipeline visualization page, and developers can clearly see the execution of each process such as code compilation, construction, deployment, and testing.
  • Deployment topology visualization
    The deployment topology and resource allocation of service components can be presented in a visual graph to facilitate understanding of the application deployment architecture.
  • Visualization of monitoring data
    Monitoring indicators are presented in visual ways such as line graphs and area graphs to more intuitively display application performance.

suggestion

1. Limited mobile support

CodeArts is mainly for PC-side users, and it lacks support for functions and interfaces of mobile phones and other mobile terminals. It is recommended to strengthen support.

2. The integration of open source security tools can be further improved

It is recommended that more security-related policies can be added to the CI/CD pipeline.
At the same time, it is recommended to improve the integration of open source security tools, such as OPA (OPA's fine-grained access control strategy), Vault system and other integration solutions

3. Resource creation is slow

The creation of platform resources such as K8s clusters is sometimes slow and takes a long time to wait. It is recommended to optimize the overall running speed and performance of the system.

Guess you like

Origin blog.csdn.net/caoxiaoye/article/details/131840704