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 running
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)
bashbash 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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d529f64a4644c238614eb236ab908ca6158c895e5b55f790b85bd7b9e07d1e71 |
|
MD5 | 119638af9c1191750742b4f89c88de23 |
|
BLAKE2b-256 | f602a1818e79b4a83b992e97984059df85e510fd687589425df0d629fbfa613d |
Close
Hashes for dockerignore_generate-1.0.3-py3.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1626b1b92bf67db6558fa265121b32fd8bc420993a7adaa324de33e88580038 |
|
MD5 | 6d8ded655fa8ad9ab76ca42d705e496f |
|
BLAKE2b-256 | de027748f231b5f7270ff0cec78d45eab3fa20ec1b730e69b424a9e51f0b992c |