This document describes how to store RPM artifacts in CODING-AR for centralized artifact management and version control. The following sections introduce how to create an artifact, configure authentication, and pull and push artifacts.
Open CODING-AR
1. Log in to the CODING Console and click Use Now to go to CODING page.
2. Click in the upper-right corner to open the project list page and click a project icon to open the project. 3. In the menu on the left, click Artifact Management.
Preparations
Note:
Before you begin:
Prepare a Linux environment.
Select RPM as the repository type.
Initialize a Local RPM Project
RPM is installed in Linux by default. You can run rpm commands in a Linux terminal directly. To use rpm commands in other operating systems, use Docker to install CentOS:
docker run -it --name centos centos:8 /bin/bash
For example:
wget -N --no-check-certificate "https://www.rpmfind.net/linux/fedora/linux/development/rawhide/Everything/aarch64/os/Packages/h/hello-2.10-5.fc34.aarch64.rpm" && rpm -i hello-2.10-5.fc34.aarch64.rpm
Click Generate configuration from access token in "Guide". A personal token will be generated as your access credential. You can manage your personal token in Personal Account Settings > Access Token.
After entering your login password, copy the configuration generated to the local /etc/yum.repos.d/rpm-go.repo
file. If this file does not exist, create one.
Run the rpm publish command to push an RPM package.
curl -u [Username/Email] -X POST [Repository URL in the Push Guide] -T [Artifact Name].rpm
After the artifact is pushed successfully, refresh the page to view the latest artifacts.
Run the command in the guide to pull an artifact.
RPM repositories have a default proxy address. You can configure other addresses.
Configure the remote proxy repository URL, pull artifacts in the repository to the local machine, and the artifacts will be automatically backed up to CODING-AR.
Note:
If CODING-AR does not automatically store RPM artifacts pulled from the proxy, check:
Whether you have the permission to push artifacts to this repository.
Whether the artifacts already exist in your local cache.
Was this page helpful?