Code Monkey home page Code Monkey logo

pyenv-docker's Introduction

This builds a minimal Docker image of pyenv based off the fork at OblateSpheroid/pyenv. This fork has the "auto-install" option for when a Python version is referenced but not installed. The default behavior is to fail in this scenario.

Build

To build a local image, run make build, or to set a new version (e.g., 1.x.x), make build VERSION=1.x.x.

Images are automatically built in the Docker Hub repo for this image when a new version tag is pushed. The post build hook ensures that the latest tag in that repo always matches the the most recently auto-built version.

To pull the most recent image: docker push oblatespheroid/pyenv

Usage

A Docker container launched from this image can run any Python command while specifying a version of Python.

This will download and install Python 3.6.10, then call the newly installed Python to print its version:

docker run --rm oblatespheroid/pyenv ash -lc "echo 3.6.10>.python-version && PYENV_AUTOINSTALL=1 python --version"

or from this folder, simply:

make run CMD="echo 3.6.10>.python-version && python --version"

pyenv-docker's People

Contributors

oblatespheroid avatar

Watchers

 avatar  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.