sergiocampama / BazelRemoteCache

Remote Cache Server for Bazel written in Swift

Home Page:https://bazel.build

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remote Cache Server for Bazel

Build Status

This is an HTTP server optimized for Bazel Remote Caching. It is built in Swift using Swift NIO.

Usage note

In order to run, clone this repository and execute it with:

swift run server

Available options:

  • --host HOST: Defaults to 127.0.0.1. Bazel does not support IPV6.
  • --port PORT: Defaults to 9000.
  • --storage_path: Defaults to empty. If not specified, an in-memory cache will be used, meaning that the cache will be lost when the server is killed. If this option is specified, a file system cache will be used, which is persisted across server restarts.
  • --verbose: If specified, the server will log all requests.

Changelog

  • 0.1.1 (2019.01.06): Improved testability.
  • 0.1.0 (2019.01.05): Initial release.

Future work

  • Implement status endpoint.

About

Remote Cache Server for Bazel written in Swift

https://bazel.build

License:Apache License 2.0


Languages

Language:Swift 100.0%