Simple Docker image for bootstrapping a new Rails dev env in Docker
535
A Docker container for bootstrapping a Docker Rails development environment
docker run -ti -u $(id -u) -v $(pwd):/work fishpercolator/rails-new $appname
Or, if you plan to use this a lot, make an alias:
alias rails-new='docker run -ti -u $(id -u) -v $(pwd):/work fishpercolator/rails-new'
rails-new $appname
After the environment has been bootstrapped:
cd $appname
docker-compose build
vim Gemfile # add your favourite gems
docker-compose run web bundle
docker-compose run web rake db:create
docker-compose up
And lo, your new application should be ready to go at http://localhost:3000.
On Github: https://github.com/fishpercolator/docker-rails-new
Content type
Image
Digest
Size
280.5 MB
Last updated
over 9 years ago
docker pull fishpercolator/rails-new