---
title: "Dockerizing your Ruby apps, and when not to use Rails?"
publication: "Ruby Weekly"
issue: 514
published_at: "2020-08-13"
canonical_url: "https://rubyweekly.com/issues/514"
---

Plus more of this week's Ruby news, views, and libraries.       

#514 — August 13, 2020 

[Read on the Web](https://rubyweekly.com/issues/514)   

Ruby Weekly 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/v1597248005/gh2qtfrbiot135jq6zgi.png)](http://codefol.io/posts/when-should-you-not-use-rails/)  

[When Should You _Not_ Use Rails?](http://codefol.io/posts/when-should-you-not-use-rails/) — Thoughts on when Rails doesn’t necessarily shine compared to the alternatives. No one else has really created a list like this and it’s likely it’ll be cited going forward by many teams considering Rails. On the flip side, Rails’ conventions and the familiarity people have with it [make it a compelling choice for many too](https://news.ycombinator.com/item?id=24058647). 

Noah Gibbs   

[How to Dockerize a Rails Application](https://www.codewithjason.com/dockerize-rails-application/) — _“I had to hear Docker explained about 48,766 times before I finally grasped why it’s useful.”_ So if you need the 48,767th time, this tutorial may convince you? 😁 

Jason Swett   [![\](https://copm.s3.amazonaws.com/c41aad42.png)](https://www.datadoghq.com/dg/apm/ruby-troubleshooting/?utm_source=Advertisement&utm_medium=CooperPress&utm_campaign=CooperPress-RubyWeeklyTroubleshootP) 

[Troubleshoot Ruby App Performance with End-To-End Tracing](https://www.datadoghq.com/dg/apm/ruby-troubleshooting/?utm_source=Advertisement&utm_medium=CooperPress&utm_campaign=CooperPress-RubyWeeklyTroubleshootP) — Datadog’s APM generates detailed flame graphs to help you identify bottlenecks and latency. Navigate seamlessly between Ruby app traces, logs and metrics to troubleshoot application performance issues fast. Try Datadog APM free. 

Datadog APM sponsor   

[How to Dockerize a Sinatra Application](https://www.codewithjason.com/dockerize-sinatra-application/) — Since we're thinking about where we should and shouldn't use Rails, it wouldn't be fair if we didn't also cover how to Dockerize Sinatra apps, so thanks to Jason for covering that too! ;-) 

Jason Swett   

[Understanding and Implementing OAuth2 in Ruby](https://www.honeybadger.io/blog/oauth2-ruby/) — If you want your users to “login with GitHub”, you might install a gem, get everything set up, and then cross your fingers hoping it won’t need to be tweaked again as you don’t know how OAuth2 really works. This post aims to resolve that situation. 

Diogo Souza   

[Nothing to Escape: 43 Ways to Encode a NULL Character](https://idiosyncratic-ruby.com/70-nothing-to-escape.html) — How many different ways does Ruby provide for inserting a NULL byte into a double-quoted string? A clue is in the title.. 😄 

Idiosyncratic Ruby     

**⚡️ Quick bytes:** 

- Someone on Twitter showed off the late Jim Weirich's [first 30 line draft of Rake.](https://twitter.com/RubyCademy/status/1292011901073993729)
- Pluralsight has put together a [how to set up a Ruby development environment page](https://www.pluralsight.com/guides/how-to-set-up-a-ruby-development-environment) for Windows, Ubuntu and Mac users.   

💻 Jobs  

[Podia Is Hiring a Product Developer to Help Us Empower Creators](https://apply.workable.com/podia/j/6D4A20DE01/) — We’re a small team, building a large product, mostly The Rails Way… with just a sprinkling of Stimulus Reflex. 

Podia   

[Technical Lead / CTO (London, UK | Remote)](https://www.goodgym.org/stories/work-with-us-technical-lead-cto) — Join an award-winning social enterprise and help lead the development of a Rails-powered digital volunteering platform. 

GoodGym   

[Find a Job Through Vettery](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-rubyweekly&utm_term=tech&utm_content=grouped&utm_campaign=ad-77583) — Use Vettery to connect with hiring managers at startups and Fortune 500 companies. It's free for job-seekers. 

Vettery  

ℹ️ _Interested in running a job listing in Ruby Weekly? There's [more info here](https://booking.cooperpress.com/jobs)_. 

📘 Articles & Tutorials  

[Creating Unlogged Postgres Tables in Rails](https://prathamesh.tech/2020/08/10/creating-unlogged-tables-in-rails/) — Unlogged tables don’t write to the write-ahead log, so they are faster, which you might want for testing environments or other non-durable cases. 

Prathamesh Sonpatki   

[Ruby Options You Can Enable or Disable](https://idiosyncratic-ruby.com/71-nothing-to-disable.html) — Covers a few command line `--enable` and `--disable` settings you may have not encountered before, like disabling the Ruby 2.7 ‘do you mean’ functionality or enabling experimental JIT support. 

Idiosyncratic Ruby   

[Two Ways to Test Rails Log Messages with RSpec](https://everydayrails.com/2020/08/10/rails-log-message-testing-rspec.html) 

Aaron Sumner   

[Barebackups: Super-Simple Database Backups](https://barebackups.com) — We automatically backup your databases on a schedule. You can use our storage or bring your own S3 account for unlimited backup storage. 

Barebackups sponsor   

▶[How to Translate and Localize Apps with Rails Internationalization](https://gorails.com/episodes/how-to-use-rails-i18n) — An 18 minute screencast on translating and localizing your app to make it accessible to users around the world. 

Chris Oliver (Go Rails)   

▶[Rails at Super Scale with Kyle d'Oliveira](https://devchat.tv/ruby-rogues/rr-467-rails-at-super-scale-with-kyle-doliveira/) — Kyle d’Oliveira shares his ‘survival tips’ for dealing with tens of thousands of commits, massive migrations and the very limits of databases, all learnt from working on Rails ‘megaprojects’. 

Ruby Rogues Podcast podcast   

[Introduction to Rails Patterns and Anti-Patterns](https://blog.appsignal.com/2020/08/05/introduction-to-ruby-on-rails-patterns-and-anti-patterns.html) — This first post in a multi-part series defines design patterns and anti-patterns along with some examples. 

Nikola Đuza   

▶[Talking with Matt Swanson, Creator of Boring Rails](https://railswithjason.simplecast.fm/matt-swanson) — [Boring Rails](https://boringrails.com/) is a collection of [useful articles](https://boringrails.com/articles/hovercards-stimulus/) covering the tried and tested ways of building modern Rails apps at the biggest companies. 

Rails with Jason Podcast podcast   

[Record a Call in Ruby with Vonage Voice API WebSockets](https://www.nexmo.com/blog/2020/08/04/record-a-call-in-ruby-with-vonage-voice-api-websockets) — A simple yet functional app that uses Thin and Rack to showcase this API that has recently left beta status. (Yes, it leans on Vonage’s commercial API.) 

Vonage Developer Blog   

[How to Completely Remove Ruby 2.7's Default Bundler](https://dev.to/st0012/completely-remove-the-default-bundler-from-ci-environment-j0c) — I’m not so sure about this, but it may be handy if you want to use 2.7 with an old version of Rails that requires a Bundler version prior to 2.0? 

Stan Lo  

🛠 Code and Tools  

[Strings 0.2: Useful Functions for Transforming Strings](https://github.com/piotrmurach/strings) — Including wrapping to certain line lengths, padding, folding, truncation, and sanitization. 

Piotr Murach   

[TTY::Box 0.6.0: Draw Frames and Boxes in Your Terminal Window](https://github.com/piotrmurach/tty-box) — I get some great DOS-era UI vibes from this :-) 

Piotr Murach   

[JetBrains RubyMine 2020.2 Has Been Released](https://www.jetbrains.com/ruby/?utm_source=cooperpress&utm_medium=cpc&utm_campaign=rubymine-bl&utm_content=13082020) 

JetBrains sponsor   

[Rails::Auth 3.0: Modular Resource-Based Authentication and Authorization for Rails/Rack](https://github.com/square/rails-auth) 

Square   

[OmniAuth OAuth2 1.7.0: An Abstract OAuth2 Strategy for OmniAuth](https://github.com/omniauth/omniauth-oauth2) — v1.7.0 adds the option to specify that your strategy should use [PKCE](https://tools.ietf.org/html/rfc7636). 

OmniAuth Community   

[Refinery CMS Blog 4.0: A Blogging Engine for Refinery CMS](https://github.com/refinery/refinerycms-blog) — [Refinery CMS](https://www.refinerycms.com/) is a popular Rails-based content management system and this introduces a blogging component. 

Refinery         

Curated by [Peter Cooper](https://twitter.com/peterc), [Glenn Goodrich](https://twitter.com/ruprict) and [Cooperpress](https://cooperpress.com/). 

[Change your email address](https://rubyweekly.com/edit_subscription/*|UID|*) or[Stop getting this newsletter](https://rubyweekly.com/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom
