Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.15 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.15 KB

Buildpack storing resulting binaries in Redis

Build Status

This buildpack takes all files from input directory (/input) and stores them in Redis instance.

Building image

$ export BUILDPACK_IMAGE=store
$ git clone "git@github.com:spark/buildpack-${BUILDPACK_IMAGE}.git"
$ cd buildpack-$BUILDPACK_IMAGE
$ docker build -t particle/buildpack-$BUILDPACK_IMAGE .

Running

This buildpack is designed to be run by Dray but can be also used outside of it by specifying following environment variables:

  • DRAY_JOB_ID - Identifier to be used as key when storing the files
  • REDIS_URL - URL to Redis instance
  • REDIS_EXPIRE_IN - TTL of stored key in Redis. Defaults to 10 minutes
$ docker run --rm \
  -v ~/tmp/input:/input \
  -e REDIS_URL="redis://192.168.0.10:6379" \
  -e DRAY_JOB_ID="job-1" \
  particle/buildpack-store