You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's painful especially for Python projects because we need several level of simple wildcards to ignore .pyc files (see this comment: moby/moby#13113 (comment)).
I don't know if there is a better option to support it in Python. I've also checked https://pypi.python.org/pypi/glob2/0.5 as it seems to support it but the double-wildcard support ** is made recursively at the directory walking level and not the path matching level.
Python version: 3.5.2
OS: Mac OS X 10.11.6
Docker-py: master (b3ea1fb)
I'm planning to take some times trying to do a PR for the support.
The text was updated successfully, but these errors were encountered:
Docker-py don't seems compliant with the multi-dir wildcard syntax in .dockerignore.
The corresponding docker issue is moby/moby#13113 and the PR is moby/moby#17090.
It's painful especially for Python projects because we need several level of simple wildcards to ignore
.pyc
files (see this comment: moby/moby#13113 (comment)).I've pushed a git repository to reproduce the issue: https://github.com/Lothiraldan/docker-py-wildcarddir-bug
Building it with the official docker client outputs:
Building it with docker-py outputs (using unreleased master version):
It seems that the docker PR replaced the equivalent of
match_path
(docker-py/docker/utils/utils.py
Lines 228 to 235 in b3ea1fb
I don't know if there is a better option to support it in Python. I've also checked https://pypi.python.org/pypi/glob2/0.5 as it seems to support it but the double-wildcard support
**
is made recursively at the directory walking level and not the path matching level.Python version: 3.5.2
OS: Mac OS X 10.11.6
Docker-py: master (b3ea1fb)
I'm planning to take some times trying to do a PR for the support.
The text was updated successfully, but these errors were encountered: