Skip to content

particle-iot-archived/buildpack-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 "[email protected]: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

About

[DEPRECATED] This is currently implemented in Dray itself

Resources

Stars

Watchers

Forks

Packages

No packages published