Shinigami is an open source Python library allowing the user to generate and build Dockerfiles during runtime
Project description
Shinigami was created to be simplistic and maintainable
Shinigami is an open source Python library allowing the user to generate and build Dockerfiles during runtime.
Usage
You can install Shinigami via pip:
pip install shinigami
Quick Example
from shinigami.shinigami import Shinigami
def create_file():
Shinigami(lang_os="python", version="3.9", build=True).generate_dockerfile()
if __name__ == '__main__':
create_file()
If you just want to generate the Dockerfile without building the container, you can do that too. Just remove the build
boolean from the class and you should see a Dockerfile populate in your current directory within seconds.
There are currently 3 seperate parameters you can choose from:
lang_os
(str
) - The language or operating system you should like to pull from Docker Hub (Example:ubuntu
)version
(str
) - The version of the language or operating system (Example:22.04
)build
(bool
) - This allows you to choose if you would like to build the Docker container or just pull the Dockerfile without buildingverbose
(bool
) - Logs information to stdout
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shinigami-0.1.13.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for shinigami-0.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ca2dff085106d3829d21bb00aba0cce1a4436f6d4053209e251ad804f54dd80 |
|
MD5 | 5b0564a9784b8b6d16b1dbc6580decc6 |
|
BLAKE2b-256 | 263ba52b429aab33c167910dfcbaeda782cdf91243c0226a9b4f61a049145fdf |