This is an HTTP server optimized for Bazel Remote Caching. It is built in Swift using Swift NIO.
In order to run, clone this repository and execute it with:
swift run server
--host HOST
: Defaults to127.0.0.1
. Bazel does not support IPV6.--port PORT
: Defaults to9000
.--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.
- 0.1.1 (2019.01.06): Improved testability.
- 0.1.0 (2019.01.05): Initial release.
- Implement status endpoint.