1. Resources
  2. /
  3. Plugins
  4. /
  5. compose-check-buildkite-plugin

MOTSELL Compose Check Buildkite plugin

Compare two normalized Docker Compose configurations before a migration command runs. A different project name can change the physical volume names even when the YAML is identical. This plugin reports that change before the next command step can act on it.

The plugin bundles the offline Compose Check 0.2.1 CLI. It reads two explicit local files. It does not run Docker, install packages, connect to servers, upload logs or restore data.

Example

Use a trusted Linux or macOS Buildkite agent (v3.85 or newer) with Node.js 22 or newer. Prepare both JSON snapshots privately using docker compose config --format json in the source and destination projects. Remove private values; do not commit or upload snapshots containing credentials. The two files must already be present in the checkout directory before the pre-command hook starts.

steps:
  - label: "Review migration configuration"
    command: "echo Configuration review finished"
    plugins:
      - motsell/compose-check#v0.1.0:
          source: migration/source.json
          destination: migration/destination.json

Review the release and pin its full commit SHA before using the plugin in a production pipeline. Use it only in trusted, operator-controlled jobs, not on untrusted pull requests or jobs that expose secrets to untrusted code.

Configuration

  • source: required checkout-relative path to the normalized source JSON.
  • destination: required checkout-relative path to the normalized destination JSON.

Both must be regular files. Absolute paths, URLs, parent-directory paths and symlink components are rejected. The checker limits each input to 250,000 bytes and 80 services. It reports fixed findings and ordinal positions without printing service names, paths or private configuration values.

The pre-command hook returns 0 when no important review cues were found, 1 when there are important review cues and 2 for invalid inputs or a local failure. A nonzero result stops the command step. A successful comparison does not prove that the database has been restored or that the application will work on the destination.

For a concrete recovery exercise, see the disposable PostgreSQL migration lab. It verifies restored data after restart. The Compose Check comparison alone cannot do that.

Tests

Run the executable hook tests with Node.js 22 or newer:

node --test test/hook.test.mjs

These are local tests of the actual hook entry point with synthetic input files and the Buildkite configuration environment. They do not require a Buildkite account or Docker.

MIT. The bundled CLI files are unchanged from the Compose Check commit linked above.

The plugins listed on this webpage are provided for informational purposes only. They have not undergone any formal security review or assessment. While we strive to provide useful resources, we cannot guarantee the safety, reliability, or integrity of these plugins. Users are strongly advised to conduct their own security evaluations before downloading, installing, or using any plugin. By using these plugins, you acknowledge and accept any risks associated with their use. We disclaim any liability for any harm or damages arising from the use of the plugins listed.

You deserve better CI.

Get started for free with a full month of our all-access trial.

Buildkite Pipelines

Platform

  1. Pipelines
  2. Public pipelines
  3. Test Engine
  4. Package Registries
  5. Pricing

Hosting options

  1. Self-hosted agents
  2. Mac hosted agents
  3. Linux hosted agents
  4. Windows hosted agents

Resources

  1. Docs
  2. Blog
  3. Changelog
  4. Example pipelines
  5. Plugins
  6. Webinars
  7. Case studies
  8. Events
  9. Migration Services

Company

  1. About
  2. Careers
  3. Press
  4. Security
  5. Brand assets
  6. Contact

Solutions

  1. Replace Jenkins
  2. Workflows for MLOps
  3. Testing at scale
  4. Monorepo mojo
  5. Bazel orchestration

Compare

  1. All comparisons
  2. Buildkite vs GitHub Actions
  3. Buildkite vs Jenkins
  4. Buildkite vs CircleCI
  5. Buildkite vs Harness
  6. Buildkite vs CloudBees
  7. Buildkite vs Blacksmith
  8. Buildkite vs Depot
  9. Buildkite vs Dagger

Legal

  1. Terms of Service
  2. Acceptable Use Policy
  3. Privacy Policy
  4. Subprocessors
  5. Service Level Agreement
  6. Supplier Code of Conduct
  7. Modern Slavery Statement

Support

  1. System status
  2. Forum
© Buildkite Pty Ltd 2026