utils.build

Module Contents

Classes

PatternMatcher(self,patterns)
Pattern(self,pattern_str)

Functions

tar(path,exclude=None,dockerfile=None,fileobj=None,gzip=False)
exclude_paths(root,patterns,dockerfile=None) Given a root directory path and a list of .dockerignore patterns, return
build_file_list(root)
create_archive(root,files=None,fileobj=None,gzip=False,extra_files=None)
mkbuildcontext(dockerfile)
split_path(p)
normalize_slashes(p)
walk(root,patterns,default=True)
tar(path, exclude=None, dockerfile=None, fileobj=None, gzip=False)
exclude_paths(root, patterns, dockerfile=None)

Given a root directory path and a list of .dockerignore patterns, return an iterator of all paths (both regular files and directories) in the root directory that do not match any of the patterns.

All paths returned are relative to the root.

build_file_list(root)
create_archive(root, files=None, fileobj=None, gzip=False, extra_files=None)
mkbuildcontext(dockerfile)
split_path(p)
normalize_slashes(p)
walk(root, patterns, default=True)
class PatternMatcher(patterns)
__init__(patterns)
matches(filepath)
walk(root)
class Pattern(pattern_str)
__init__(pattern_str)
normalize(p)
match(filepath)