El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
Software Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Creating a Self-Hosted Repo

Updated on 2024-10-16 GMT+08:00

If you use this service for the first time, you need to create a repository. Self-hosted repos are divided into local repositories and virtual repositories.

Local Repository: An actual physical repository hosted on the server, where you can upload different types of artifacts.

Virtual Repository: Users can configure agent sources in the virtual repository to connect with local third-party repositories. It also offers local repository functions and provides a single entry to make setup easier for customers.

  1. Click a project card to access the project. (If no project is available, create one.)
  2. Choose Artifact Self-hosted Repos from the menu bar. Click in the upper left corner of the page.
  3. The Create Repository page is displayed.
  4. Configure basic information and click Submit by referring to Table 1.

    Table 1 Parameters for configuring repositories

    Item

    Mandatory

    Description

    Repository Type

    Yes

    You can choose Local Repository or Virtual Repository.

    • A local repository is hosted on the server and is a physical repository that stores artifact data.
    • A virtual repository combines local and proxy repositories, offering a single, unified entry for accessing artifacts.

    Repository Name

    Yes

    Enter up to 20 characters: letters, numbers, underscores (_), hyphens (-), and periods (.).

    NOTE:

    After a repository is created, its name cannot be changed.

    Package Type

    Yes

    Local repository supports Maven, npm, Go, PyPI, RPM, Debian, Conan, Docker, CocoaPods, and NuGet artifacts.

    Virtual repository supports Maven, npm, Docker, and PyPI artifacts.

    Complete the configuration for the selected format by referring to Configuring a Repository.

    NOTE:

    Docker and CocoaPods repositories currently are only available in the AP-Singapore region.

    Project

    Yes

    Choose a project to associate with the newly created repository. After the settings are complete, the project to which the user belongs cannot be changed.

    Description

    No

    Enter up to 200 characters.

  5. View the list on the left side of the page to find the new repository. Click the repository name to view more details. The repository details are displayed on the General, Resources, and Operation Logs tabs.

    • General: displays the repository name, repository type, repository path, relative path, creator, creation time, modifier, modification time, artifact count, and artifact size.
    • Resources: collects statistics on artifacts uploaded to the repository by File Counts and Storage Capacity (Byte).

    • Operation Logs: displays the operation history of uploading, deleting, and restoring data from the recycle bin in the repository.

Configuring a Repository

The following table describes the configuration items specific to each type of repository. For details, see Table 2.

Table 2 Configuration items

Package Type

Item

Mandatory

Description

Maven

Version Policy

Yes

The options are Release and Snapshot.

You are advised to select both. If so, two repositories will be generated: Release and Snapshot. If you select one, a Release or Snapshot repository will be generated.

Include patterns

No

Enter the path to be added and click +.

During builds, only Maven files whose paths start with the preceding paths can be uploaded to the self-hosted repo.

npm

Include patterns

No

Enter the path to be added and click +.

During builds, only npm files whose paths start with the preceding paths can be uploaded to the self-hosted repo.

Go

Include patterns

No

Enter the path to be added and click +.

During builds, only Go files whose paths start with the preceding paths can be uploaded to the self-hosted repo.

PyPI

Include patterns

No

Enter the path to be added and click +.

During builds, ensure that PyPI dependency packages in which the name value in the setup.py file matches the preceding paths.

RPM

Include patterns

No

Enter the path to be added and click +.

During builds, only RPM binary files whose paths start with the preceding paths can be uploaded to the self-hosted repo.

Conan

Include patterns

No

Enter the path to be added and click +.

Only Conan files whose paths start with the preceding paths can be uploaded from a local client to the self-hosted repo.

Docker

Include patterns

No

Enter the path to be added and click +.

Only image files whose paths start with the preceding paths can be pushed to the self-hosted repo.

CocoaPods

Include patterns

No

Enter the path to be added and click +.

During builds, only CocoaPods files whose paths start with the preceding paths can be uploaded to the self-hosted repo.

Setting Proxy for a Virtual Repository

The new support for custom proxy repositories enables users to create proxies for both open-source and third-party dependency repositories. After files are downloaded from proxy repos, they can be cached to CodeArts Artifact, allowing users to download files from third-party dependencies as fast as from the local repos.

NOTE:

The proxy settings are available for Maven, npm, Docker, and PyPI in self-hosted repos.

In the self-hosted repo, you can add custom mirror sources to the Maven, npm, Docker, and PyPI virtual repositories. To configure a custom mirror source, perform the following procedure:

  1. Log in to the CodeArts homepage, click the username in the upper right corner of the page, and choose All Account Settings from the drop-down list.
  2. In the navigation pane, choose Mirror > Mirror.
  3. Click the Custom Source tab and click Create Proxy in the upper right corner of the page.
  4. In the displayed dialog box, choose the package type, and enter the proxy name (required), proxy address (required), PyPI index proxy address (required only if the package type is PyPI), proxy username, and proxy password.

    NOTE:
    • The proxy address must start with https:// or http://. Otherwise, an error message is displayed, indicating that the URL is invalid.
    • If you do not set the proxy password, the password set last time is used by default.

  5. Click OK. The custom proxy source is added.
  6. You can perform the following operations on a custom proxy source.

    Operation

    Description

    Edit

    Click in the Operation column to change the proxy name, proxy username, and proxy password.

    Delete

    Click in the Operation column to delete the custom proxy source.

    If the custom proxy source to be deleted has been associated with a self-hosted repo, remove the proxy source from the Proxy Settings page of that repository and return to this page to delete the proxy source.

Adding Proxies for a Virtual Repository

  1. A virtual repo has been created. For details, see Creating Repositories.
  2. Go to the self-hosted repo page. In the left pane, click the name of the target virtual repository.
  3. Click Proxy Settings in the upper right corner of the page.
  4. Click Add Proxy and select Open Source or Custom Source.

    You can select Third-party Repository or Huawei Local Repository from Custom Source.

    • Third-party repository: Set a third-party repository or a repository created by a user as the proxy source.

      After selecting a third-party repository, click the Proxy Name drop-down list and select a custom proxy source. For details about how to create a custom proxy source, see Custom Proxy Source.

    • Huawei local repository: Set Huawei local repository as the proxy source. Users can only select the local repository of which they are the repository administrator.

      You can select a local repository from the Proxy Name drop-down list.

  5. Click OK. The proxy is added.

    • Click in the Operation column to change the proxy name, proxy username, and proxy password.
      NOTE:

      Users cannot edit the proxy source of the Huawei local repository.

      Click in the Operation column to delete the proxy.

Obtaining Repository Paths

Each time you create a repository, a repository path is generated for it. You will use this path to connect the repository to your local development environment. Perform the following operations to obtain the path.

  1. Go to the self-hosted repo page. In the left pane, click the name of the target repository.
  2. The repository path is displayed on the General page. Click to obtain the path.

Deleting a Repository

You can delete repos, and they will be moved to the recycle bin.

  1. Go to the self-hosted repo page. In the left pane, click the name of the target repository.
  2. Click Settings on the right of the page to view the basic information about the repository.
  3. Click Delete on the right of the page. The deleted repo no longer displays in the repo list on the left pane.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback