Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

baseimage-rbenv-docker

Docker image with rbenv. Based on phusion's baseimage

phusion/baseimage-docker

How to use

Basic usage
FROM macool/baseimage-rbenv-docker

# set $HOME environment variable
ENV HOME /root
# same:
# RUN echo "/root" > /etc/container_environment/HOME

# Use phusion's baseimage-docker's init system.
CMD ["/sbin/my_init"]
Update rbenv and ruby build definitions

New ruby definitions may not be inside the base image's. In case we need a new one:

RUN bash -c 'cd /root/.rbenv && git pull'
RUN bash -c 'cd /root/.rbenv/plugins/ruby-build && git pull'
Install Ruby (+ gems)
RUN rbenv install 2.2.1 && rm -rf /tmp/*
RUN rbenv global 2.2.1
RUN gem install bundler --no-ri --no-rdoc
RUN rbenv rehash
Examples
Docker Pull Command
Owner
eritiro
Source Repository

Comments (0)