hydra-queue-runner: Get store mode configuration from hydra.conf

To use the local Nix store (default):

  store_mode = direct

To use a local binary cache:

  store_mode = local-binary-cache
  binary_cache_dir = /var/lib/hydra/binary-cache

To use an S3 bucket:

  store_mode = s3-binary-cache
  binary_cache_s3_bucket = my-nix-bucket

Also, respect binary_cache_{secret,public}_key_file for signing the
binary cache.
This commit is contained in:
Eelco Dolstra
2016-02-22 17:23:06 +01:00
parent 94817d77d9
commit 6c3ae36648
2 changed files with 51 additions and 13 deletions

View File

@ -262,6 +262,8 @@ private:
nix::Path hydraData, logDir;
std::map<std::string, std::string> hydraConfig;
/* The queued builds. */
typedef std::map<BuildID, Build::ptr> Builds;
Sync<Builds> builds;