Categories
Admin Docker Laravel Programming Tutorials Web Dev

One minute Laravel and Docker Tutorial

In this short lesson we’re gonna focus on two topics we tackled some time ago in this mini series of tutorials: Laravel and Docker.

In the getting started section of the Laravel project’s documentation we can see that a vagrant box named Homestead is strongly adviced to begin with a quick and smooth developing experience.

Benedict.Cloud tutorial

Homestead is pre-packed with all the stuff necessary to begin the development of a Laravel application, but when it comes to deploying any application, Docker has many strong points that other virtual environments have not. In many cases it is a must: see this article of mine for further details.

Categories
Docker Programming Tutorials Web Dev

Step by step Tutorial on a Rails CRUD web application

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.

The Ruby programming language

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):

Categories
Admin Docker PHP Programming Tutorials Web Dev

Short Tutorial on Docker, PHP and MySQL

In this simple tutorial I’m gonna teach you some basic tricks about a skinny LAMP application containerized with Docker.

One of the main focuses of Docker is to solve a common problem in developing and deploying complex applications, which is known as “The Matrix from Hell”.

When designing an application stack which is more than trivial, you have to take care of the compatibility between different version of tools and languages and their dependecies, which have to coexist in the same machine.

The Docker virtual environment

With Docker, you solve this problem by instantiating different light-weight machines in a single host, without the need to create real virtual machines on the cloud and spending a lot more: a Docker container consumes a lot less resources.