nix-store-gcs-proxy

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

README

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.

License

This work is licensed under the Apache License 2.0. See LICENSE for more details.

Sponsors

This work has been sponsored by Digital Asset and Tweag I/O.

Digital Asset Tweag I/O

This repository is maintained by Tweag I/O

Have questions? Need help? Tweet at @tweagio.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL