Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Latest commit

 

History

History
26 lines (16 loc) · 968 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 968 Bytes

drone-s3-bash-cache

Inspired by https://github.com/Drillster/drone-volume-cache

This is a Drone cache written in Bash that compresses paths set using "mount", and uploads the result to an Amazon S3 bucket. It is specifically designed for our narrow use case and so probably isn't that useful for other people.

It replaces the official S3 cache plugin.

My motivation for writing my own cache plugin was mostly for simplicity. I was also after performance gains as I was seeing slow unpack times with the official plugin and was finding it difficult to debug.

It uses s3cmd for the S3 operation.

For compression it uses pigz since this is multithreaded and we're compressing a lot of files in our cache.

Any cache expiry should be handled by S3 expiration settings.

Docker

To build, run:

docker build --rm -t surminus/drone-s3-bash-cache .