Skip to content

fcgmedia/docker-rbenv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dorker rbenv

Prepare image which is installed muliple versions of ruby and bundler for each versions.

Usage

You can use this image for your project soon. It's uploaded docker.io, tcnksm/rbenv.

docker pull tcnksm/rbenv

or in Dockerfile

FROM tcnksm/rbenv

Run it !

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

Build rbenv image

Install multiple versions of ruby by rbenv. you can define ruby verion which you want to use in versions.txt.

OS X

Use Vagrant for VM running docker. Vagrant 1.4 has a Docker provisioner. Download it here.

After installed.

vagrant up

And login to VM.

vagrant ssh

Now you can use docker in VM.

Build image

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

Author

tcnksm

About

Image which is installed muliple versions of ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%