Skip to content

Bug fix - Ignore build context path validation when it is not necessary#7564

Merged
ulyssessouza merged 3 commits intodocker:masterfrom
bartier:ignore-build-directory
Aug 10, 2020
Merged

Bug fix - Ignore build context path validation when it is not necessary#7564
ulyssessouza merged 3 commits intodocker:masterfrom
bartier:ignore-build-directory

Conversation

@bartier
Copy link
Copy Markdown

@bartier bartier commented Jun 27, 2020

Resolves #7359 #7363
Fixes #3513

PR summary :

Signed-off-by: Vitor Anjos <vitorbartier@hotmail.com>
@bartier
Copy link
Copy Markdown
Author

bartier commented Jun 27, 2020

The CI check returned the errors below:

[2020-06-27T18:11:01.185Z] + docker pull dockerbuildbot/compose:debian-cfc746081b1405b6a555c44ed7e03175119b537b
[2020-06-27T18:11:01.186Z] Error response from daemon: manifest for dockerbuildbot/compose:debian-cfc746081b1405b6a555c44ed7e03175119b537b not found: manifest unknown: manifest unknown
...
...

[2020-06-27T18:16:05.980Z] Put https://registry-1.docker.io/v2/dockerbuildbot/compose/blobs/uploads/015cbade-172e-4efb-b28e-5de45777cb18?_state=qUzeAqOvLOUR1lV0pPNsl8FtV-3eQv2hA8dnn9A2dvt7Ik5hbWUiOiJkb2NrZXJidWlsZGJvdC9jb21wb3NlIiwiVVVJRCI6IjAxNWNiYWRlLTE3MmUtNGVmYi1iMjhlLTVkZTQ1Nzc3Y2IxOCIsIk9mZnNldCI6MTI0MjksIlN0YXJ0ZWRBdCI6IjIwMjAtMDYtMjdUMTg6MTY6MDFaIn0%3D&digest=sha256%3Afad985599cc50e392d05b204b92097406320eb5d4ffb8c090e07efbb845dc393: EOF

I'm not sure how to fix this or how this relates to my PR. May anyone helps? :)

@zerozez
Copy link
Copy Markdown

zerozez commented Jul 12, 2020

It looks similar to #5780 but much simplified version and that exactly on what was pointed in https://github.com/docker/compose/pull/5780/files#r190403905 . Would be nice to see it merged!

The CI check returned the errors below:

[2020-06-27T18:11:01.185Z] + docker pull dockerbuildbot/compose:debian-cfc746081b1405b6a555c44ed7e03175119b537b
[2020-06-27T18:11:01.186Z] Error response from daemon: manifest for dockerbuildbot/compose:debian-cfc746081b1405b6a555c44ed7e03175119b537b not found: manifest unknown: manifest unknown
...

That's ok. It just cannot find the image in the registry, then builds it from the commit.

[2020-06-27T18:16:05.980Z] Put https://registry-1.docker.io/v2/dockerbuildbot/compose/blobs/uploads/015cbade-172e-4efb-b28e-5de45777cb18?_state=qUzeAqOvLOUR1lV0pPNsl8FtV-3eQv2hA8dnn9A2dvt7Ik5hbWUiOiJkb2NrZXJidWlsZGJvdC9jb21wb3NlIiwiVVVJRCI6IjAxNWNiYWRlLTE3MmUtNGVmYi1iMjhlLTVkZTQ1Nzc3Y2IxOCIsIk9mZnNldCI6MTI0MjksIlN0YXJ0ZWRBdCI6IjIwMjAtMDYtMjdUMTg6MTY6MDFaIn0%3D&digest=sha256%3Afad985599cc50e392d05b204b92097406320eb5d4ffb8c090e07efbb845dc393: EOF

This is more interesting, since debian image has been pushed into registry, but not alpine. And, as I understand, related to https://docs.docker.com/registry/recipes/nginx.

bartier added 2 commits August 7, 2020 09:36
Signed-off-by: Vitor Anjos <vitorbartier@hotmail.com>
@bartier
Copy link
Copy Markdown
Author

bartier commented Aug 7, 2020

I made a update in this branch to make the CI pass. May anybody do a code review, please? :)

As @zerozez pointed out, I focused on doing a simplified approach to fix the behavior explained in #7359 because PR 5780 - Code review had a discussion about it.

Copy link
Copy Markdown
Contributor

@aiordache aiordache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Copy Markdown
Contributor

@ulyssessouza ulyssessouza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ulyssessouza ulyssessouza merged commit de1afd9 into docker:master Aug 10, 2020
@mlewiarz
Copy link
Copy Markdown

Hi, will it also apply to docker-compose down?

@Vuwij
Copy link
Copy Markdown

Vuwij commented Jul 1, 2021

Hi, can you make this also apply to docker-compose down?

@acz-a
Copy link
Copy Markdown

acz-a commented Jul 20, 2022

Please apply this to docker-compose restart.
I cannot restart active containers at the end devices this is nonesense.

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.

Ignore missing build directory if not building images pull requires valid build path

7 participants