Open vb-linetco opened 1 year ago
If you need more information please let me know.
I think you are using a different module. There is no dockercompose
type in this module.
I think you are using a different module. There is no
dockercompose
type in this module.
Yes you were right, we had another wrapper around docker_compose, I did not notice that, I've updated the setup
Puppet 5 is EOL, and v3.10.2 of this module is very old.
Puppet 5 is EOL, and v3.10.2 of this module is very old.
As i stated, a more recent version was behaving the same.
And the changed line that fixes the issue is the same for all affected version.
I'm not sure whether the issue is a bug or just requires an enhancement for supporting docker-compose > 2.8. One could check the version of docker-compose and use _
as a separator for docker-compose prior to 2.8 and -
for >= 2.8
Sounds like this is a duplicate of #891.
Sounds like this is a duplicate of #891.
You are probably right on this, i did not notice that docker-compose-plugin
is actually like docker-compose v2.
I still encounter this bug with v10.0.1
which uses the right docker compose.
Describe the Bug
Using
docker_compose
together with adocker-compose.yaml
with a custom build image like for example:services: example: build: context: . dockerfile: Dockerfile
file { [ "/srv/docker-configs", "/srv/docker-configs/example"]: ensure => directory, group => 'root', owner => 'root' }
file { '/srv/docker-configs/example/Dockerfile': mode => '644', source => 'example/Dockerfile', require => File["/srv/docker-configs/example"] }
exec {"docker-compose build": cwd => "/srv/docker-configs/example", path => "/usr/local/bin", # for updated docker-compose refreshonly => true, subscribe => [ File["/srv/docker-configs/example/Dockerfile"], ], notify => Docker_compose["example"] }
docker_compose { "example": compose_file => ["/srv/docker-configs/example/docker-compose.yml"], ensure => present, require => File["/srv/docker-configs/example/docker-compose.yml"], } }
puppet-agent: (/Stage[main]/Docker_example/Dockercompose[example]/Docker_compose[example]/ensure) created (corrective)