Add an S3-backed binary cache store

This commit is contained in:
Eelco Dolstra
2016-02-18 16:18:50 +01:00
parent 0e254ca66d
commit 2d40888e2e
8 changed files with 205 additions and 10 deletions

View File

@ -8,6 +8,7 @@
#include "state.hh"
#include "build-result.hh"
#include "local-binary-cache-store.hh"
#include "s3-binary-cache-store.hh"
#include "shared.hh"
#include "globals.hh"
@ -33,10 +34,16 @@ ref<Store> State::getLocalStore()
ref<Store> State::getDestStore()
{
#if 0
auto store = make_ref<LocalBinaryCacheStore>(getLocalStore(),
"/tmp/binary-cache",
"/home/eelco/Misc/Keys/test.nixos.org/secret",
"/home/eelco/Misc/Keys/test.nixos.org/public");
"/home/eelco/Misc/Keys/test.nixos.org/public",
"/tmp/binary-cache");
#endif
auto store = make_ref<S3BinaryCacheStore>(getLocalStore(),
"/home/eelco/Misc/Keys/test.nixos.org/secret",
"/home/eelco/Misc/Keys/test.nixos.org/public",
"nix-test-cache-3");
store->init();
return store;
}