Wolfi
Use a Wolfi registry to host private Wolfi Linux packages and serve them to Alpine Package Keeper (APK).
Before you begin
Ensure you have the Alpine Package Keeper (
apk) and Harness CLI installed on your local machine.Access to a Harness account with appropriate permissions to create registries and connectors.
Create a Wolfi artifact registry
Go to the Artifact Registry module in your Harness project.
Click New Artifact Registry.
In the Registry Type list, select Wolfi.
Enter a Registry Name.
Optionally, add a Description and Labels for better organization.
Select Create Registry to finalize.
Configure an upstream proxy (optional)
An upstream proxy allows your registry to fetch Wolfi packages from external APK sources when they are not available locally. The default upstream is the Wolfi OS package repository.
Create an upstream proxy
In the Artifact Registry module, select the dropdown next to New Artifact Registry and select Upstream Proxy.
Select Wolfi as the proxy type.
Enter an Upstream Proxy Key.
Optionally, add a Description and Labels.
Select your Source:
Wolfi Linux
Custom
If you choose Custom, enter your Remote Registry URL. The URL must point to the parent of the architecture folders (for example,
https://packages.wolfi.dev/os, wherehttps://packages.wolfi.dev/os/x86_64/contains package indexes). If you use another Wolfi mirror or private repository, verify the path ends at that parent level, not at an architecture subdirectory.Choose your Authentication method (
Anonymousby default for public Wolfi mirrors).Choose visibility between Public and Private. By default, the visibility is set to Private.
Click Create Upstream Proxy to establish the connection.
Configure the upstream proxy in your registry
In the Artifact Registry module, select an existing Wolfi Artifact Registry.
Go to the Configuration tab.
In the Advanced (Optional) section, click Configure Upstream.
Select from the list of compatible proxies to add them to your registry.
Select Save to save the configuration.
Set up the Wolfi client
In your Harness Wolfi Artifact Registry, click Set Up Client and follow the instructions to configure APK to use the registry.
1. Generate identity token
In your Harness Wolfi Artifact Registry, click Set Up Client.
Click Generate Token to generate an identity token.
2. Configure apk repository
Point apk at this registry.
Add the registry to /etc/apk/repositories:
Refresh the index (allow untrusted indexes):
3. Install a package
Use apk with --allow-untrusted for unsigned indexes.
Last updated
Was this helpful?