In the last two episodes we saw how to create a simple web application using either Symfony or Laravel. Let’s do the same with Ruby on Rails. In this tutorial we’re gonna combine also another competence we developed in this series of tutorials: Docker.
Fist step, install Docker following this quick guide on the official website: https://docs.docker.com/install. It might be useful (if not necessary) a post installation for Docker, follow these instructions and everthing will work out: https://docs.docker.com/install/linux/linux-postinstall.
The next thing, install Docker Compose for the purpose of completing correctly this tutorial, you will find why as you go along with this reading: https://docs.docker.com/compose/install.
Now that you have all up and running, all you have to do is to create a Ruby on Rails stack on your computer. Let’s start by creating a Docker file, so create a directory named rails_tutorial and put the following content on a file called Dockerfile (without any extension):
Hi there. My name is Mirko Benedetti, I’m a Software Developer and I founded this website. Excellence is what I consider to be our ultimate goal, and passion for technology constantly drives me to it. I began programming self-taught at a very young age. Since then I learned a lot, and every day I’m learning new things.