Skip to main content

An application to parse Dockerfiles and determine whether all called binaries are able to run (are either present in the base image or are installed by a package manager)

Project description


Logo

Docker runcheck

Check wheter required binaries are available in the used docker image without having to first run an expensive and long docker build.
· Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

  • Run docker-runcheck to validate your Dockerfile before attempting time-intensive docker builds.

  • docker-runcheck works as follows:

    • contructs one or more containers based on the mentioned image
    • docker image is downloaded if not present but it is not built.
    • export image as tar file and compile a list of the available binaries in the image
    • compile a list of any binaries mentioned in a RUN command that are missing from the image or are used before being installed by a package manager.

(back to top)

Getting Started

We need the docker sdk and the dockerfile library

pip install -r requirements.txt 

Usage

You can run docker-runcheck with:

python docker-runcheck.py

Roadmap

  • [] Detect binary is installed by super package (e.g. build-essential)

Contributing

Contributions are greatly appreciated.

If you have a suggestion to make this project better, please fork the repo and create a pull request. Don't forget to give the project a star! Thanks!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/SuperAmazingFeature)
  3. Commit your Changes (git commit -m 'Add some Super Amazing Feature')
  4. Push to the Branch (git push origin feature/SuperAmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License.


Contact

Paulo Aragao - paulo.aragao.dev@gmail.com

(back to top)

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

docker_runcheck-0.1.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

docker_runcheck-0.1.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file docker_runcheck-0.1.2.tar.gz.

File metadata

  • Download URL: docker_runcheck-0.1.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.4 Linux/5.15.0-48-generic

File hashes

Hashes for docker_runcheck-0.1.2.tar.gz
Algorithm Hash digest
SHA256 557f8fbaf570b628539a62aee5b8353e3b7253602401bf8d1ec577dafc9a0872
MD5 9af37112d21389e5ddb66f46913ea402
BLAKE2b-256 0c366a2af04a9981359aa1f537ddfffc206d87e0a44fab224da9be61fd97a82c

See more details on using hashes here.

File details

Details for the file docker_runcheck-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: docker_runcheck-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.4 Linux/5.15.0-48-generic

File hashes

Hashes for docker_runcheck-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e5999186f6b78929116743e78201e1f27b915ef9c0fb3e31fb66b8fbc8431e3
MD5 260e8c123000b6c570b6648e701a8c84
BLAKE2b-256 4015b9ff857ee2b37680b4cfd38979bf3ba9a4d28ad711f5a218ef828d116440

See more details on using hashes here.

Supported by

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