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
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!
- 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
File details
Details for the file docker-runcheck-0.1.0.tar.gz
.
File metadata
- Download URL: docker-runcheck-0.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.9.5 Linux/5.15.0-48-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c465b9a5a1749dec9bb77534a664a23cc93e36880ac3fcd0578819a9e814aef |
|
MD5 | 90a91be684f9c3ae58123070fd78b48c |
|
BLAKE2b-256 | 06582ccdc846c2881c69df23435261949170103ce652af27c8a0ba9c1fb76b77 |
File details
Details for the file docker_runcheck-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: docker_runcheck-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.9.5 Linux/5.15.0-48-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 078157836d9c22a881fa76ba0e5b9e64d61478d927bd89b7d455eabf259ae371 |
|
MD5 | 72942ebd911cdaed27df34849bdd0e37 |
|
BLAKE2b-256 | ce51add9832adb2ffe890cc333ff597fe1f5c0981bf732f61ad194a3b614ae46 |