Using Docker for Rails Development
Why
There are many use cases of Docker. I see people primarily using it for Continous Integration and deployment. But Docker is also good for development. The obvious advantages of using Docker for development are:
- No need to install app dependencies on dev machines. App dependencies are built into Docker images. Hence, the dev machines are not messed up with crazy dependencies. The only dependency needed on dev machines is Docker, nothing else.
- Have a consistent development environment for all developers. No more excuse like “It works on my machine”!
- Onboard new developers quickly. No need to spend hours setting up new dev machine and configuring it. You only need
docker-compose upand you can start coding.
Prerequisites
This post will show you how to setup a Ruby on Rails development environment using Docker. My dev machine has
»