Skip to main content

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

dockerignore-generate-1.0.7.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dockerignore_generate-1.0.7-py3.6.egg (2.5 kB view details)

Uploaded Egg

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

Hashes for dockerignore-generate-1.0.7.tar.gz
Algorithm Hash digest
SHA256 401a80991590bef75045ff4c17d4f886f3604d37c0efec6b5a1718f0932ddb9b
MD5 8d67e16221c9764ae6c343c43b39dcf0
BLAKE2b-256 cb8f35c6d6031b7774f84c1df82cadcace1975a3058716366a426534671b459b

See more details on using hashes here.

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

Hashes for dockerignore_generate-1.0.7-py3.6.egg
Algorithm Hash digest
SHA256 8e934c9ccf213537c55a8f366fd5b09fa8a41386b382c01ea85e9e314029d19f
MD5 937f2b7b2d4b504762a4698cbfd5e9b2
BLAKE2b-256 0da867fa906ed2694c3aa298bb731a3dee206a364f70afbdaa229969debdccb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page