Use Artifactory as a Habitat package artifact store
You can use an existing Artifactory instance as your object store instead of MinIO. This feature is available as an early preview for testing.
Configure Habitat Builder to use Artifactory as an object store
Before you start, make sure you have:
- The URL of your Artifactory instance.
- An API key to authenticate with Artifactory.
- An Artifactory repository for storing Habitat artifacts.
To use an Artifactory instance as your object store, follow these steps:
- If you don’t have it already on your system, clone the habitat-sh/on-prem-builder repository.
- Update your
bldr.env
file using the Artifactory settings inbldr.env.sample
. - Install Habitat On-Prem Builder as usual with the
install.sh
script. - Optional: Sign in to Habitat Builder, create an origin, upload some packages, and verify that the packages appear in your specified Artifactory repository.
If you have issues, see the support section below.
Test a local Artifactory instance
To quickly test with a local Artifactory instance, run:
sudo hab svc load core/artifactory
This command starts a local Artifactory instance.
You can view it at: http://localhost:8081/artifactory/webapp/#/home
Manage Builder artifacts on Artifactory
If you use Artifactory for your Habitat On-Prem Builder artifact store, read about Artifactory’s best practices for disaster recovery.