Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.31 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.31 KB

Build Status

HTTP proxy with REST API to interact with Azure's Blob Storage.

Simply allows to use HEAD, GET or PUT requests to check blob's availability, as well as downloading or uploading blobs to a specified Azure container by blob's name.

For example, GET for <proxy_url>/some/file will return some/file blob if it exists.

Prebuilt Docker image is available on Docker Hub:

docker pull ghcr.io/cirruslabs/azure-blob-storage-proxy:latest

Usage

$: proxy --help
  -account-key string
        Azure Account Key
  -account-name string
        Azure Account Name
  -container string
        Container to use for storing caches. (default "cirrus-ci-caches")
  -port int
        Port to serve (default 8080)
  -prefix string
        Optional prefix for all objects. For example, use --prefix=foo/.

Testing

Tests expect to have Azure API available on localhost:10000. It is recommended to run azurite like this:

docker run -d -t -p 10000:10000 -p 10001:10001 mcr.microsoft.com/azure-storage/azurite

After azurite is up and running on 10000 port simply run go test ./... to test all the things.