automatically generate dockerignore data
Project description
Python (>=3.6) cli tool to automatically generate .dockerignore files
Install
pip install dockerignore-generate
Usage
In a directory with a Dockerfile
dockerignore-generate
will print out the contents of the generated .dockerignore file. Without arguments the docker build context is assumed to be the curret working directory.
Contexts and Dockerfiles
To speciify a specific context use the -c flag, and -f to speciify a Dockerfile, e.g.,
dockerignore-generate -f Dockerfile.custom -c ../
To save a the .dockerignore file, use the -s flag, and -o to overwrite an existing file (file will be stored in the docker build context)
dockerignore-generate -f Dockerfile.custom -c ../ -s
wrote ../.dockerignore
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dockerignore-generate-1.0.7.tar.gz.
File metadata
- Download URL: dockerignore-generate-1.0.7.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.1 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
401a80991590bef75045ff4c17d4f886f3604d37c0efec6b5a1718f0932ddb9b
|
|
| MD5 |
8d67e16221c9764ae6c343c43b39dcf0
|
|
| BLAKE2b-256 |
cb8f35c6d6031b7774f84c1df82cadcace1975a3058716366a426534671b459b
|
File details
Details for the file dockerignore_generate-1.0.7-py3.6.egg.
File metadata
- Download URL: dockerignore_generate-1.0.7-py3.6.egg
- Upload date:
- Size: 2.5 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.1 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e934c9ccf213537c55a8f366fd5b09fa8a41386b382c01ea85e9e314029d19f
|
|
| MD5 |
937f2b7b2d4b504762a4698cbfd5e9b2
|
|
| BLAKE2b-256 |
0da867fa906ed2694c3aa298bb731a3dee206a364f70afbdaa229969debdccb4
|