Giter Site home page Giter Site logo

polyaxon-dockerizer's Introduction

License: MIT Build Status PyPI version Codacy Badge Slack

polyaxon-dockerizer

Python tool to generate dockerfiles compatible with Polyaxon dockerizer and Polyaxon CLI local run.

Install

$ pip install -U polyaxon-dockerizer

Usage

Generate Dockerfiles

from polyaxon_dockerizer import generate
         
generate(repo_path,
         from_image,
         build_steps=['apt-get install git', 'pip install tensorflow'],
         env_vars=[['ENV_VAR1', 'VALUE1'], ['ENV_VAR2', 'VALUE2']],
         nvidia_bin=None,
         lang_env='en_US.UTF-8',
         uid=2222,
         gid=2222)

Build images

from polyaxon_dockerizer import build

build(build_context,
      image_tag,
      image_name,
      nocache,
      credstore_env=None,
      registries=None)

Build & Push images

from polyaxon_dockerizer import build_and_push

build_and_push(build_context,
               image_tag,
               image_name,
               nocache,
               credstore_env=None,
               registries=None)

Install polyaxon

Please check polyaxon installation guide

Quick start

Please check our quick start guide to start training your first experiment.

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.