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
update to compose-go v1.4.0 as previous version introduced breaking changes #9700
Conversation
…hanges Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I am having some trouble with the updated compose version 2.9.0 where this fix should be applied. Using the following example dockerfile to demonstrate the issue: FROM docker:latest
RUN mkdir /app
WORKDIR /app
ENV BUILDKIT_PROGRESS=plain
RUN echo -e "\
services:\n\
example:\n\
build:\n\
context: .\n\
dockerfile: Dockerfile\n\
command: -text="hello world"\n\
" > docker-compose.yml
RUN echo -e "\
FROM hashicorp/http-echo\n\
ENV FOO=BAR" > Dockerfile
RUN echo -e "\
docker-compose --version \n\
docker compose version \n\
docker compose build \n\
docker-compose build" > /cmd.sh && chmod +x /cmd.sh
CMD ["/cmd.sh"] And building/running it with:
I am observing the following (truncated) output:
E.g. the separator used is still However when I run the same image with the
Is there something I am doing wrong? Note: I don't think the issue is with the official docker image as I am observing a similar behavior with compose v2.9.0 on my arch linux installation. |
I can also open a new issue about this if needed. |
Hi @Jyrno42 |
Oh, OK. Thanks for the clarifications. Then I know its safe to update my scripts without fearing a revert there. |
Docker changed the behaviour of the container naming to use `-`. Originally we believed that this change was reverted in 2.9.0 as it caused a breaking change. But it turns out instead they reverted it only for related resources such as networks, volumes, secrets and config. This means that going forward the container names use dashes (`-`). Note: Also updated the poetry wrapper image name to match this new convention. Refs: - https://docs.docker.com/compose/release-notes/#290 - docker/compose#9700 - docker/compose#9700 (comment) - compose-spec/compose-go#297 - Internal ref: https://thorgate.slack.com/archives/C02AMG235/p1659433239011469 Additional changes in the PR: - Update poetry installation command - ref: https://python-poetry.org/docs/master/#installing-with-the-official-installer - Remove pypi docker compose in ci image (docker-compose now comes from inside docker image anyway)
Docker changed the behaviour of the container naming to use `-`. Originally we believed that this change was reverted in 2.9.0 as it caused a breaking change. But it turns out instead they reverted it only for related resources such as networks, volumes, secrets and config. This means that going forward the container names use dashes (`-`). Note: Also updated the poetry wrapper image name to match this new convention. Refs: - https://docs.docker.com/compose/release-notes/#290 - docker/compose#9700 - docker/compose#9700 (comment) - compose-spec/compose-go#297 - Internal ref: https://thorgate.slack.com/archives/C02AMG235/p1659433239011469 Additional changes in the PR: - Update poetry installation command - ref: https://python-poetry.org/docs/master/#installing-with-the-official-installer - Remove pypi docker compose in ci image (docker-compose now comes from inside docker image anyway)
Docker changed the behaviour of the container naming to use `-`. Originally we believed that this change was reverted in 2.9.0 as it caused a breaking change. But it turns out instead they reverted it only for related resources such as networks, volumes, secrets and config. This means that going forward the container names use dashes (`-`). Note: Also updated the poetry wrapper image name to match this new convention. Refs: - https://docs.docker.com/compose/release-notes/#290 - docker/compose#9700 - docker/compose#9700 (comment) - compose-spec/compose-go#297 - Internal ref: https://thorgate.slack.com/archives/C02AMG235/p1659433239011469 Additional changes in the PR: - Update poetry installation command - ref: https://python-poetry.org/docs/master/#installing-with-the-official-installer - Remove pypi docker compose in ci image (docker-compose now comes from inside docker image anyway)
Signed-off-by: Guillaume Lours guillaume.lours@docker.com
What I did
Bump version of compose-go to
v1.4.0
which remove the breaking changes introduced in versionv1.3.0
by this PR(not mandatory) A picture of a cute animal, if possible in relation with what you did