A Buildkite plugin that lets you cache the contents of docker volumes.
⚠️ Requires an in-development version of the docker-compose buildkite plugin ⚠️
Example
docker-compose.yml:
version: "3.8"
services:
rails:
build: .
volumes:
- bundler-data:/usr/local/bundle
volumes:
bundler-data:
pipeline.yml:
steps:
- command: bundle install
plugins:
- docker-cache#v1.0.0:
s3_bucket: my-cache-bucket
keys:
- v1-bundler-cache-{{ arch }}-{{ checksum "Gemfile.lock" }}
- v1-bundler-cache-{{ arch }}
save: true
volumes:
- bundler-data
- docker-compose#v3.7.0:
run: app
- command: rspec spec
plugins:
- docker-cache#v1.0.0:
s3_bucket: my-cache-bucket
keys:
- v1-bundler-cache-{{ arch }}-{{ checksum "Gemfile.lock" }}
- v1-bundler-cache-{{ arch }}
volumes:
- bundler-data
- docker-compose#v3.7.0:
run: app