Skip to content

chriskite/dockerfile-rbenv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Dockerfile to build Image which is installed muliple versions of ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published