https://github.com/outstand/docker-cache-buildkite-plugin
:whale: :bank: Cache/Restore the contents of docker volumes
https://github.com/outstand/docker-cache-buildkite-plugin
buildkite buildkite-plugin docker docker-compose
Last synced: 3 months ago
JSON representation
:whale: :bank: Cache/Restore the contents of docker volumes
- Host: GitHub
- URL: https://github.com/outstand/docker-cache-buildkite-plugin
- Owner: outstand
- Created: 2020-11-06T21:05:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-18T16:45:34.000Z (over 3 years ago)
- Last Synced: 2025-01-21T08:11:52.065Z (4 months ago)
- Topics: buildkite, buildkite-plugin, docker, docker-compose
- Language: Shell
- Homepage:
- Size: 127 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Cache Buildkite Plugin [](https://buildkite.com/outstand/docker-cache-buildkite-plugin)
A [Buildkite plugin](https://buildkite.com/docs/plugins) that lets you cache the contents of docker volumes.
## :warning: Requires an in-development version of the [docker-compose buildkite plugin](https://github.com/outstand/docker-compose-buildkite-plugin/tree/wrap_command) :warning:
## Example
docker-compose.yml:
```yml
version: "3.8"
services:
rails:
build: .
volumes:
- bundler-data:/usr/local/bundlevolumes:
bundler-data:
```pipeline.yml:
```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
```