Public Repository

Last pushed: 5 months ago
Short Description
Buildpack storing resulting binaries in Redis
Full Description

Buildpack storing resulting binaries in Redis

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
Docker Pull Command
Owner
particle