github batect/batect 0.21.0

latest releases: 0.85.0, 0.84.0, 0.83.9...
5 years ago

What's new

  • ⚠️ Breaking change: the format for specifying environment variables has been changed.

    Previously, this was the required format:

    environment: 
      - NAME=value
      - OTHER_NAME=othervalue

    The new format is:

    environment: 
      NAME: value
      OTHER_NAME: othervalue

    This allows us to take advantage of a bunch of standard YAML features, in particular, dealing with whitespace and escaping special characters.

  • It is now possible to specify default values for environment variables if the host environment variable has not been set. For example:

    environment: 
      OPTIMISATION_LEVEL: ${OPTIMISATION_LEVEL:-none}

    will set OPTIMISATION_LEVEL inside the container to the value of OPTIMISATION_LEVEL on the host, or, if it is not set, default to none.

    There is more information (and more examples) available in the documentation.

What's been fixed

  • Fixed the issue where the output could become garbled if the console was resized while batect was running in fancy output mode (which is the default mode for interactive sessions).

Getting started

First time using batect? Take a look at the getting started guide, or the Java or Ruby sample projects.

How to upgrade from previous versions

  • If you're using batect 0.12 or newer, run ./batect --upgrade to upgrade automatically.
  • If you're using an older version of batect, replace the batect script in your project with the one attached to this release. (Don't forget to make it executable with chmod +x batect if need be.)

Don't miss a new batect release

NewReleases is sending notifications on new releases.