daml/nix/tools/nix-store-gcs-proxy
Miklos 0eba812109
Remove trace_context field from Ledger API [KVL-1021] (#10256)
CHANGELOG_BEGIN
* [Integration Kit] Removed trace_context field from Ledger API and its bindings as we now have trace context propagation support via gRPC metadata. If you are constructing or consuming Ledger API requests or responses directly, you may need to update your code.
CHANGELOG_END
2021-07-15 19:06:25 +02:00
..
.gitignore open-sourcing daml 2019-04-04 09:33:38 +01:00
default.nix update all references of old repo to new repo 2019-04-04 16:20:07 +02:00
deps.nix Remove trace_context field from Ledger API [KVL-1021] (#10256) 2021-07-15 19:06:25 +02:00
go.mod Update netty and iogrpc version (#6063) 2020-05-27 13:44:34 -04:00
go.sum open-sourcing daml 2019-04-04 09:33:38 +01:00
main.go open-sourcing daml 2019-04-04 09:33:38 +01:00
README.md open-sourcing daml 2019-04-04 09:33:38 +01:00

nix-store-gcs-proxy - A HTTP nix store that proxies requests to Google Storage

Nix supports multiple store backends such as file, http, s3, ... but not Google Storage.

Here we provide a http store backend for nix, that will proxy all the reads and writes to Google Storage.

Usage

Make sure to have the google credentials installed in ~/.config/gcloud or the GOOGLE_APPLICATION_CREDENTIALS environment variable.

Start the server in one terminal: ./nix-store-gcs-proxy --bucket-name <name-of-your-bucket>

Then in another terminal, use nix copy --to http://localhost:3000?secret-key=path/to/secret.key <INSTALLABLE>. Eg:

$ nix-store --generate-binary-cache-key cache1.example.org cache.key cache.pub
$ nix copy --to http://localhost:3000?secret-key=$PWD/cache.key nixpkgs.hello

TODO

  • Section that explains how to setup GCS with the LB CDN.