Skip to content

DevOps

How to Create a Dev Container for Ruby Apps

Last week we looked at the reason why we should use dev containers to write code. This week we create a dev container to develop a Ruby application on a machine that has no Ruby installed.

Why would you do that? Tools like rbenv are a great help to manage your Ruby environments. However, getting the right Ruby interpreter is only part of the setup. You need all your Gems and 3rd party tools in the right version, or nothing goes. My machine has no Ruby installed and by the end of this post I will run my Ruby Gem

C:\>ruby

'ruby' is not recognized as an internal or external command, operable program or batch file.