GithubHelp home page GithubHelp logo

ahatyd / dockerfile-rbenv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tcnksm/dockerfile-rbenv

0.0 1.0 0.0 278 KB

Dockerfile to build Image which is installed muliple versions of ruby

Home Page: http://deeeet.com/writing/2013/12/12/docker-rbenv-en/

License: MIT License

dockerfile-rbenv's Introduction

Dorkerfile-rbenv MIT License

Dockerfile to prepare image which is installed muliple versions of ruby and bundler for each versions.

Usage

tcnksm/rbenv Repository | Docker Hub Registry - Repositories of Docker Images

You can use this image for your project soon. It is installed ruby 1.8.7-p371, 1.9.3-p392, 2.0.0-p353:

docker run -i -t tcnksm/rbenv bash -l -c 'rbenv global 2.0.0-p353; bundle ...'

Build your own rbenv image

You can build your own rbenb-image with favor versions of ruby. You can define ruby verion which you want to use in versions.txt.

$ docker build -t <TAG> .

Dockerfile execute belows;

  1. Pull base image (this time ubuntu)
  2. Install packages which are needed to build ruby
  3. Clone rbenv
  4. Clone ruby-build
  5. Install multiple versions of ruby which are defined at versions.txt
  6. Install Bundler for each version

Reference

See more

Now DockerHub has its official language stack, so you should see ruby Repository.

Contribution

  1. Fork (https://github.com/tcnksm/dockerfile-rbenv/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Push it to your remote repository
  6. Create new Pull Request

Author

tcnksm

dockerfile-rbenv's People

Contributors

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