Docker Ruby On Rails Development. That ll put your application code inside an image that builds a container with ruby bundler and all your dependencies inside it. We ll install rails on a docker container. Next create a bootstrap gemfile which just loads rails.
If you are actively developing an application using docker can simplify your workflow and the process of deploying your application to production. From 0 to fargate migrating your ruby on rails app to docker this is the second article in a series about migrating your production application stack to docker and aws fargate.
Since i use docker i decided to compile ruby from the source as there is no real need to use the version managers like rvm or rbenv.
This post is a b side of my railsconf 2019 talk terraforming legacy rails applications today i am not going to convince you to switch to docker for application development though you can check the railsconf video for some arguments. The app ruby on rails container is based on linux ubuntu 18 0 4 bionic image to ensure that it would work equally the same way both in development and production. Now if you plan on building ruby on rails projects with dockerfiles you re ready. Since i use docker i decided to compile ruby from the source as there is no real need to use the version managers like rvm or rbenv.