Skip to content

Conversation

Copy link

Copilot AI commented May 24, 2025

This PR adds the ability to use "latest" as a value for the compose_version configuration option. This allows users to automatically get the most recent stable version of Docker Compose without having to manually update their Vagrantfile when new versions are released.

Implementation Details

  • When compose_version is set to "latest", the plugin will:

    • Resolve the actual latest version by following the redirect from GitHub's latest release URL
    • Use the resolved version for downloading, installing, and symlinking Docker Compose
    • Display informative messages in the Vagrant output about the resolved version
  • The implementation uses the HTTP redirect from GitHub's latest release page rather than the GitHub API to avoid rate limiting issues

Example Usage

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/bionic64"

  config.vm.provision :docker
  config.vm.provision :docker_compose, compose_version: "latest"
end

Documentation

The README has been updated to document this new capability in the "Other configs" section.

Fixes #30.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: leighmcculloch <351529+leighmcculloch@users.noreply.github.com>
Copilot AI changed the title [WIP] Set docker-compose version to latest Add support for "latest" Docker Compose version May 24, 2025
Copilot AI requested a review from leighmcculloch May 24, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set docker-compose version to latest

2 participants