Debian
Get started with Debian packages in Harness Artifact Registry.
Use a Debian registry to host, proxy, and distribute .deb packages compatible with Debian and Ubuntu systems. Harness Artifact Registry supports APT-based package installation, source uploads, and upstream proxying from external Debian repositories.
Before you begin
APT package manager: Available on any Debian or Ubuntu system by default.
Harness permissions: Registry-create access in the target project. Go to RBAC in Harness to configure roles.
Create a Debian Artifact Registry
Go to the Artifact Registry module in your Harness project.
Select New Artifact Registry.
In the Registry Type list, select Debian.
Provide a Registry Name.
Optionally, add a Description and Labels for better organization.
In the Debian Config section, set Indexed Remote Architectures. The default values are
amd64,i386, andarm64. Select from these defaults or add any additional architectures that need to be indexed from remote repositories.Harness generates a
.gzindex by default. In Optional Index Compression Formats, you can also select XZ (.xz extension), that increases the cold-start index generation time and cost.Choose visibility between Public and Private.
Select Create Registry to finalize.
Edit Debian configuration
Debian Config appears on the registry Configuration tab, after Artifact Registry Definition (name, description, and labels).
Open the Debian artifact registry.
Select the Configuration tab.
In the Debian Config, update Indexed Remote Architectures.
Optionally, specify the Optional Index Compression Formats.
Click Save.
Configure an upstream proxy (optional)
An upstream proxy allows your registry to fetch Debian packages from external repositories (such as official Debian or Ubuntu mirrors) if they are not available locally.
Create an upstream proxy
In the Artifact Registry module, select the dropdown next to New Artifact Registry and select Upstream Proxy.
Choose Debian Registry as the proxy type.
Enter an upstream proxy name.
Enter your remote repository URL. The URL must point to the parent directory of the
/distsfolder for that repository (for example,http://deb.debian.org/debian, wherehttp://deb.debian.org/debian/dists/contains the release metadata). If you use another Debian mirror or private repository, verify the path ends at that parent level, not at a distribution or component subdirectory.Choose your Authentication method (
Anonymousby default).Select Create Proxy to establish the connection.
Configure the upstream proxy in your registry
In the Artifact Registry module, select an existing Artifact Registry.
Select the Configuration tab.
Under Advanced (Optional), select Configure Upstream.
Select from the list of compatible proxies to add them to your registry.
Select Save to save the configuration.
Set up the client
With your Debian registry created, you can now configure APT to install packages from your Harness registry.
1. Configure authentication
In your Harness Debian Artifact Registry, select Setup Client and then Generate Token to generate an identity token for authentication.
2. Add the repository to APT sources
3. Configure authentication for APT
Create or edit the auth config file:
Add the following content:
4. Update APT cache
5. Install a package
6. Upload a .deb package
7. Upload Debian sources (optional)
Upload a .dsc file:
Upload a source tarball (for upstream source tarballs, specify the upstream version):
Last updated
Was this helpful?