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
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
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.
Getting Started
We need the docker sdk and the dockerfile library
pip install -r requirements.txt
Installation
pip install docker_runcheck
Usage
You can then run docker-runcheck with:
python -m docker_runcheck
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/SuperAmazingFeature
) - Commit your Changes (
git commit -m 'Add some Super Amazing Feature'
) - Push to the Branch (
git push origin feature/SuperAmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License.
Contact
Paulo Aragao - paulo.aragao.dev@gmail.com
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
Hashes for docker_runcheck-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1cc0c436dd1ad68f3f4d94283b93fee06ce425a0d9aca40a8f98356f41dbbce |
|
MD5 | af0e6f46b7f7e1f2fa98a5937d6bbb85 |
|
BLAKE2b-256 | c49794842066dbba7705e93f0ba25a698e9465da9a7b5086f896dba07fd1beb4 |