Local development workflow with Docker

Objectives

At the end of this section, you will be able to:

  • Share code between container and host.

  • Use a simple local development workflow.

Containerized local development environments

We want to solve the following issues:

  • “Works on my machine”

  • “Not the same version”

  • “Missing dependency”

By using Docker containers, we will get a consistent development environment.

Working on the “namer” application

$ git clone https://github.com/jpetazzo/namer

Looking at the code

$ cd namer
$ ls -1
company_name_generator.rb
config.ru
docker-compose.yml
Dockerfile
Gemfile