Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support higher docker-compose version, than v1.18 #839

Closed
maltewhiite opened this issue May 31, 2022 · 2 comments
Closed

Support higher docker-compose version, than v1.18 #839

maltewhiite opened this issue May 31, 2022 · 2 comments

Comments

@maltewhiite
Copy link

maltewhiite commented May 31, 2022

Use Case

A docker-compose version from 2017 is not ideal

Describe the Solution You Would Like

Support for newer version of docker-compose installed via

class { 'docker::compose':
  ensure => present,
  version => 'latest',
}

Describe Alternatives You've Considered

  package { 'docker-compose-plugin':
    ensure  => $docker_version,
    require => Class['docker'],
  }

But then puppet agent -t says:

Error: Could not find a suitable provider for docker_compose

So then I use a symlink /bin/docker-compose -> /usr/libexec/docker/cli-plugins/docker-compose and now it works

  file { '/bin/docker-compose':
    ensure => 'link',
    target => '/usr/libexec/docker/cli-plugins/docker-compose',
  }

Additional Context

We are using CentOS 7.

[root@vag:~]# docker-compose --version
docker-compose version 1.18.0, build 8dd22a9
@romz169
Copy link

romz169 commented Jun 14, 2022

you can tell it to grab a later version via
version => '1.29.2'

but I don't think it supports version 2 yet

@chelnak
Copy link
Contributor

chelnak commented Jul 4, 2022

Correct! You can specify the version of compose with the version parameter:

class {'docker::compose':
  ensure => present,
  version => '1.9.0',
}

Also, with regards to v2. The module currently does not support it but this might be something that we consider in the future.

Thanks!

@chelnak chelnak closed this as not planned Won't fix, can't repro, duplicate, stale Jul 4, 2022
@chelnak chelnak self-assigned this Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants