You can connect the Alpine Package Keeper client, or apk, to Artifactory to deploy and resolve packages from Artifactory repositories.
Prerequisite: Before connecting apk to Artifactory, you must have an existing Alpine repository in Artifactory. For more information, see Create an Alpine Repository.
To connect the Alpine Package Keeper client to Artifactory:
Run the following command set Artifactory as an Alpine Linux repository in your /etc/apk/repositories file:
sudo sh -c "echo 'https://<USERNAME>:<AUTH_TOKEN>@[JFrogPlatformURL]/artifactory/<REPO_NAME>/<BRANCH>/<REPOSITORY>'" >> /etc/apk/repositoriesWhere:
<USERNAME>: Your Artifactory username<AUTH_TOKEN>: Your Artifactory identity token[JFrogPlatformURL]: The base URL of your JPD<REPO_NAME>: The name of the Alpine repository in Artifactory<BRANCH>: The specific release branch of Alpine Linux you want to use<REPOSITORY>: The collection or component within the Alpine branch, typicallymainorcommunity
For example:
sudo sh -c "echo 'https://jeffry:AKCp89XxY7wLPqL6vK3Dds7Hgjd981n0@company.jfrog.io/artifactory/alpine-prod-virtual/v3.20/main' >> /etc/apk/repositories"Note
You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.
Next steps: