github buildkite-plugins/docker-buildkite-plugin v3.0.0
v3.0.0 (☀️Melbourne Heatwave)

latest releases: v5.11.0, v5.10.0, v5.9.0...
5 years ago

What's new in v3.0.0

We've improved the defaults for volume and checkout mounting, and introduced a new mount-checkout option. And we've also added a new --init option that is enabled by default, to help prevent zombie processes.

New mount-checkout option and volume changes

In v2.0.0 we made it so the checkout directory ($PWD) would be mounted into your container only if you didn't add volume mounts using the volumes option, and if you wanted to disable checkout mounting you set volumes: false.

This turned out to be very confusing behaviour, so instead we've added a new dedicated option mount-checkout which defaults to true, even if you use the volumes option. The volumes option also no longer takes a boolean, you can now only set a list of volumes you'd like mounted.

If you want to disable mounting of the checkout directory, you can set mount-checkout: false

New --init option

Docker now has an --init option](https://docs.docker.com/engine/reference/run/#specify-an-init-process), which provides a built-in process manager that signals child processes correctly on exit. We've enabled this by default, but can be disabled by setting init: false

🆙 Upgrading

If you have .:/workdir or similar in your volumes mounts, you can remove it as the new mount-checkout option will be applied by default. Make sure to set the workdir option to the directory you want it mounted to in the container.

Changes

  • Support retrying image pulls with pull-retries #95 (@timn)
  • Add a mount-checkout option #93 (@lox)
  • Add support for the tmpfs property. #91 (@philwo)
  • Add support for init property, on by default. #92 (@philwo)
  • Add support for mount-ssh-agent option #89 (@jam13)

Don't miss a new docker-buildkite-plugin release

NewReleases is sending notifications on new releases.