Skip to content

shouldbee/docker-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published