Quick Start
Quick Start
Section titled “Quick Start”Get vcpkg-harbor running in under 5 minutes.
Option 1: Docker Compose (Recommended)
Section titled “Option 1: Docker Compose (Recommended)”This starts vcpkg-harbor with MinIO for storage:
# Clone and startgit clone https://github.com/rennerdo30/vcpkg-harbor.gitcd vcpkg-harbordocker-compose up -dServices:
- vcpkg-harbor:
http://localhost:15151 - MinIO Console:
http://localhost:9001(admin: minioadmin/minioadmin)
Option 2: Local Filesystem
Section titled “Option 2: Local Filesystem”For quick testing without external dependencies:
# Installpip install vcpkg-harbor
# Start with filesystem storageVCPKG_STORAGE_TYPE=filesystem VCPKG_STORAGE_PATH=./cache vcpkg-harborConfigure vcpkg Client
Section titled “Configure vcpkg Client”Add the binary cache to your vcpkg configuration:
=== “Environment Variable”
export VCPKG_BINARY_SOURCES="http,http://localhost:15151/{name}/{version}/{sha}"=== “vcpkg Configuration”
Add to vcpkg-configuration.json:
{ "default-registry": { "kind": "git", "repository": "https://github.com/microsoft/vcpkg" }, "registries": [], "binary-sources": [ { "kind": "http", "uri": "http://localhost:15151/{name}/{version}/{sha}" } ]}Test the Cache
Section titled “Test the Cache”# Install a packagevcpkg install zlib
# The binary will be cached. On next install (or on another machine),# vcpkg will download the pre-built binary instead of compiling.Verify It’s Working
Section titled “Verify It’s Working”- Check the dashboard: Open
http://localhost:15151in your browser - Check the API:
curl http://localhost:15151/health - View metrics:
curl http://localhost:15151/metrics
Next Steps
Section titled “Next Steps”- Configuration - Customize settings
- Storage Backends - Use cloud storage
- Authentication - Secure your cache