Creating an Artifact Repository

ActiveState offers two distinct methods of integrating external artifact repositories with your ActiveState account:

  1. Prepopulation of your artifact repository (such as JFrog Artifactory) for your organization’s compliance and security needs via an Artifact Subscription.
  2. An ActiveState Artifact Repository (AAR) that works in tandem with external repositories.

Artifact Subscription

ActiveState will prepopulate the customer’s Artifactory repository with their select catalog of artifacts built by the ActiveState platform. This creates a centralized artifact repository to store all software binaries that will comply with existing corporate policies in place for security and development best practices.

To create an Artifact Subscription Contact Us.

ActiveState Artifact Repository

Before you integrate your ActiveState Platform project with your JFrog Artifactory, your organization must have the following:

Step 1: Create your AAR

Set up an ActiveState Artifact Repository for the ActiveState project you want to integrate with Artifactory. Contact ActiveState Customer Support to create your AAR.

Step 2: Configure your Artifactory

Configure a remote repository on your artifactory instance to proxy the AAR that you’ve set up.

  1. In Artifactory’s Administration menu click Repositories -> Repositories -> Remote.

  2. Click + Add Repositories -> Remote Repository.

  3. Set the Package Type to PyPI and enter the Repository Key value (e.g. har-remote).

  4. Set the URL field to: https://dl.activestate.com

  5. Set the Registry URL field to the URL of your HAR.

  6. See sample screenshot below: image1.png

  7. Click the Advanced tab.

  8. Select “Bypass HEAD Requests” under the “Others” list and leave the default boxes checked.

image2.png

  1. Click Create Remote Repository to finish.

Step 3: Verify your Artifactory Integration

Verify the new remote repository is active by installing an artifact that exists in your AAR.

  1. To resolve packages from the remote repository using pip, add the following to ~/.pip/pip.conf on macOS/Linux or %APPDATA%\pip\pip.ini on Windows:
[global]
index-url = https://<USERNAME>:<PASSWORD>@<ARTIFACTORY URL>/artifactory/api/pypi/<REPOSITORY KEY>/simple

If credentials are required to use your Artifactory instance they should be embedded in the index-URL.

Examples:

[global]
index-url = https://username:password@activestate.jfrog.io/artifactory/api/pypi/har-remote/simple
[global]
index-url = https://activestate.jfrog.io/artifactory/api/pypi/har-remote/simple
  1. To resolve packages using pip, run:
pip install <PACKAGE>

For example

pip install requests

For more information about Artifactory’s PyPI remote repository capabilities, see this article on the JFrog website.