DEV Community

Discussion on: Dockerize a Rails 5, Postgres, Redis, Sidekiq and Action Cable Application with Docker Compose

Collapse
 
maestromac profile image
Mac Siri

I'm hoping to be completely reliant on docker as my sole development environment across my machines but I feel it's much slower than running ruby/rails natively. Did I make a mistake or is this slower performance expected?

Collapse
 
nickjj profile image
Nick Janetakis • Edited

Hi. What OS / version are you using and how exactly did you install Docker? On my 4 year old i5 3.2ghz Windows 10 box with an SSD a 10,000+ line Dockerized Rails project with 50+ top level gems detects and reloads code changes in under 100ms (faster than I can manually dart my eyes over to my browser and reload). Assets are a little bit slower to compile but it's definitely not disruptive.

There is nothing special about my set up. It's just stock Windows 10 pro (Fall 2017 update) using WSL (Ubuntu) and Docker for Windows (18.03).

Collapse
 
maestromac profile image
Mac Siri

MacOS High Sierra 10.13.4. I installed Docker via Docker CE 18.03.0. If I start up a server with docker, initial loading of localhost:300 takes 92 seconds!

My native rails/postgre initial load takes 21 seconds.