Giter VIP home page Giter VIP logo

shinigami's Introduction

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

Example

from shinigami import Shinigami

def create_file():
    Shinigami(lang_os="python", version="3.9", build=True, verbose=True, color=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.

CLI

Usage

Available commands:

-h,  --help      |  Help menu
-i,  --image     |  Docker image to generate
-v,  --version   |  Version of the Docker image
-b,  --build     |  Build the Dockerfile after generation
-c,  --color     |  Generate color in the output
-rm, --remove    |  Remove the Dockerfile in your current working directory

Examples

This command will generate a Dockerfile for Ubuntu 22.04, but won't build the Docker image

shinigami -i "ubuntu" -v "22.04"

This command will build a Docker image running Python 3.8 and generate the Dockerfile

shinigami -i "python" -v "3.8" -b

Removes the Dockerfile in your current working directory

shinigami -rm

shinigami's People

Contributors

battleoverflow avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.