Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Luckily, the Rails team (and Xavier Noria in particular) found a way to solve this problem—rails-dev-box. Rails Dev Box is a Vagrant configuration, which allows you to spin up a virtual machine with everything you need inside. Cool, right?
Since I mostly dealt with Active Record and Action Cable, my Docker configuration wasn't complete. Also, back in the days, the Rails codebase wasn't container-friendly (e.g., some tests relied on a Redis or PostgreSQL instance running on the same machine). Thus, I just kept my setup around (in a few commits], and haven't tried to promote to the upstream or whatever.
Lately, I've been working a new PR to Action Cable and had to re-visit my configuration (since many things have changed in the last year). I liked what I got in the end, so I decided to share it with the community.
So, I went the old-fashioned way and added Dip to the mix. Now I can run all the familiar commands (bundle, rake, etc.) from my host system (with a dip prefix) without thinking about all the docker-compose --rm --it bla-bla. Moreover, I can cd into a subfolder (say, actioncable), and execute commands from there just like on a host machine:
Luckily, the Rails team (and Xavier Noria in particular) found a way to solve this problem—rails-dev-box. Rails Dev Box is a Vagrant configuration, which allows you to spin up a virtual machine with everything you need inside. Cool, right?
Related posts
- OrbStack – Docker Desktop and Colima Alternative for macOS
- Docker for Development on MacOS
- Docker desktop (Windows) alternatives?
- Ask HN: Please recommend how to manage personal serverss
- Is there any place where I can download an already configured Virtual machine? For example with Linux Ubuntu or Windows 10 preinstalled?