FeatureBaseDB / tools

Tools for development and ops
BSD 3-Clause "New" or "Revised" License
20 stars 14 forks source link

Pi Spawn option to pull from github repository. #53

Closed jaffee closed 7 years ago

jaffee commented 7 years ago

Create a repository for Pilosa benchmark config files github.com/pilosa/benchmarks.

Add two new optional flags to pi spawn: A string flag called --spawn which takes a filename (no default). A string flag called --spawn-repo which takes the url for a github repository where spawn files are stored. (defaults to https://github.com/pilosa/benchmarks)

If a value is passed for --spawn, it is combined with the value for spawn-repo and the file is downloaded from github, along with commit hash information in order to store the version. Add a new field to the spawn output to store the version information.

If no value is passed for --spawn use the existing --spawn-file value as normal. Store a sentinel value in the new version field which was added in the previous step to indicate that no version information is available because a local file was used.