automatically generate dockerignore data
Project description
Python 3 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
Close
Hashes for dockerignore-generate-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 268c4cdac76dc5156a9f6a3a894443e660cd257a933aa94c223353dbe1fa9e3f |
|
MD5 | 67cc93c031ab6271b38f7f0e14b0ad6c |
|
BLAKE2b-256 | 3c3e71ec9258448fa725830a5adc1c4d2871f62110b65daaef3cccb1e2b37614 |
Close
Hashes for dockerignore_generate-1.0.5-py3.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f58fff8a400e46b09096e96048c539291211359a7eae049008e94dd17c247d4d |
|
MD5 | 6842f6cd0d6c1c2abd8d2be41d7a410e |
|
BLAKE2b-256 | 35f26c5b051d48d45e15919690d4e0ac8ce1bca35492dfe18a496122e01fce3b |