aboutsummaryrefslogtreecommitdiff
path: root/docs/users/binarycaching.md
diff options
context:
space:
mode:
authorras0219 <533828+ras0219@users.noreply.github.com>2021-01-05 14:37:04 -0800
committerGitHub <noreply@github.com>2021-01-05 14:37:04 -0800
commit6b346462ba22d724d0b6fd74d1b61e2dde8a9832 (patch)
tree6a64ab19c056ddf1ffc755cf6c9625289b153465 /docs/users/binarycaching.md
parent6d3d6490ebe693b0c798bfa2e43923043387baf2 (diff)
downloadvcpkg-6b346462ba22d724d0b6fd74d1b61e2dde8a9832.tar.gz
vcpkg-6b346462ba22d724d0b6fd74d1b61e2dde8a9832.zip
[vcpkg] Improve docs for binarycaching (#15396)
Diffstat (limited to 'docs/users/binarycaching.md')
-rw-r--r--docs/users/binarycaching.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/users/binarycaching.md b/docs/users/binarycaching.md
index 9df885f4c..ed051b716 100644
--- a/docs/users/binarycaching.md
+++ b/docs/users/binarycaching.md
@@ -84,6 +84,34 @@ More information about Azure DevOps Artifacts' NuGet support is available in the
[devops-nuget]: https://docs.microsoft.com/en-us/azure/devops/artifacts/get-started-nuget?view=azure-devops
+### Azure Blob Storage (experimental)
+
+> Note: This is an experimental feature and may change or be removed at any time
+
+Vcpkg supports interfacing with Azure Blob Storage via the `x-azblob` source type.
+
+```
+x-azblob,<baseuri>,<sas>[,<rw>]
+```
+
+First, you need to create an Azure Storage Account as well as a container ([Quick Start Documentation](https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-portal)].
+
+Next, you will need to create a Shared Access Signature, which can be done from the storage account under Settings -> Shared access signature. This SAS will need:
+- Allowed services: Blob
+- Allowed resource types: Object
+- Allowed permissions: Read, Create (if using `write` or `readwrite`)
+
+The blob endpoint plus the container must be passed as the `<baseuri>` and the generated SAS without the `?` prefix must be passed as the `<sas>`.
+
+Example:
+```
+x-azblob,https://<storagename>.blob.core.windows.net/<containername>,sv=2019-12-12&ss=b&srt=o&sp=rcx&se=2020-12-31T06:20:36Z&st=2020-12-30T22:20:36Z&spr=https&sig=abcd,readwrite
+```
+
+Vcpkg will attempt to avoid revealing the SAS during normal operations, however:
+1. It will be printed in full if `--debug` is passed
+2. It will be passed as a command line parameter to subprocesses, such as `curl.exe`
+
## Configuration
Binary caching is configured via a combination of defaults, the environment variable `VCPKG_BINARY_SOURCES` (set to `<source>;<source>;...`), and the command line option `--binarysource=<source>`. Source options are evaluated in order of defaults, then environment, then command line. Binary caching can be completely disabled by passing `--binarysource=clear` as the last command line option.