Public | Automated Build

Last pushed: 2 years ago
Short Description
This is a docker image that eases setup Ruby on Rails; especially optimized for RoR 4.2.6.
Full Description

docker-rails

This is a docker image that eases setup Ruby on Rails; especially optimized for RoR 4.2.6.

Features

  • Small image: based on Alpine Linux
  • Ruby 2.3
  • Optimized for Ruby on Rails 4.2.6
  • Supports CJK languages on Rails Console

Pre-bundled gems

This docker image contains native extension gems:

  • nokogiri
  • sqlite3
  • debug_inspector
  • binding_of_caller
  • byebug
  • pg
  • puma

Installation

This docker image is available as an automated build on the docker registry hub, so using it is as simple as running:

$ docker pull shouldbee/rails

Create new rails project on currenct directory

$ docker run -it --rm -v `pwd`:/app shouldbee/rails sh -c 'gem install rails && rails new . -d postgresql'

Start development server

$ docker run -v `pwd`:/app -p 3000 shouldbee/rails bundle exec rails server -b 0.0.0.0

Getting started with dinghy and docker-compose

$ git inti myapp
$ cd myapp
$ dinghy create --provider=virtualbox
$ eval $(dinghy shellinit)
$ docker run -it --rm -v `pwd`:/app shouldbee/rails sh -c 'gem install rails && rails new . -d postgresql'

Copy docker-compose-example/docker-compose.yml and docker-compose-example/Dockerfile to myapp and then:

$ docker-compose up -d

Finally, visit http://rails.docker.

How to build docker image

make build
Docker Pull Command
Owner
shouldbee
Source Repository

Comments (0)