dunglas / symfony-docker

A Docker-based installer and runtime for Symfony. Install: download and `docker compose up`.
https://dunglas.dev/2021/12/symfonys-new-native-docker-support-symfony-world/
2.54k stars 752 forks source link

Docker-compose Up fails with a fatal error #329

Closed roman-gich closed 1 year ago

roman-gich commented 1 year ago

Hello,

I pulled recent changes from dunglas/symfony-docker and tried to build the project using docker-compose up -d --build. The build is going well untill the following command:

RUN xcaddy build \
    --with github.com/dunglas/mercure \
    --with github.com/dunglas/mercure/caddy \
    --with github.com/dunglas/vulcain \
    --with github.com/dunglas/vulcain/caddy

During the execution of the above command the build fails with a fatal error:

#0 266.0 go: downloading github.com/dunglas/mercure/caddy v0.14.1
#0 301.5 go: github.com/dunglas/mercure/caddy@upgrade (v0.14.1) requires github.com/caddyserver/caddy/v2@v2.5.2, not github.com/caddyserver/caddy/v2@v2.5.1
#0 301.5 2022/11/12 18:56:45 [FATAL] exit status 1
------
failed to solve: executor failed running [/bin/sh -c xcaddy build   --with github.com/dunglas/mercure   --with github.com/dunglas/mercure/caddy     --with github.com/dunglas/vulcain   --with github.com/dunglas/vulcain/caddy]: exit code: 1

Thanks for your help!

roman-gich commented 1 year ago

Sorry if I bothered someone, but once I used the command from README docker compose build --pull --no-cache the issue got fixed. I'm closing the issue. Thanks