-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Global .dockerignore #12843
Copy link
Copy link
Open
Labels
area/builderBuildBuildkind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shinyFunctionality or other elements that the project doesn't currently have. Features are new and shiny
Metadata
Metadata
Assignees
Labels
area/builderBuildBuildkind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shinyFunctionality or other elements that the project doesn't currently have. Features are new and shiny
Problem description
Users and developers use different editors and tool to edit, backup and process code, documentation and assets. It is not feasible to catch them all in a project's
.dockerignore. Instead, a user should be able to blacklist the file of their own toolchain.Proposed solution
Add a global
.dockerignore, e.g. at$HOME/config/docker/dockerignore, which gets combined with the project's.dockerignore.References
Docker is not the only tool with this problem. The problem is well known in the VCS world. GIT for example accepts the global
core.excludesfileoption which points to a global.gitignore. This file is combined with the projects.gitignoreto blacklist more files.Open questions