Local development workflow with Docker¶
See also
Contents
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¶
We have to work on some application whose code is at: https://github.com/jpetazzo/namer.
What is it? We don’t know yet !
Let’s download the code.
$ 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