"It works from me." If in your team this phrase feels every week, you don't have a problem with distracted developers.
It is a silent fault. It does not block anything clearly, but every day it takes time to all: to those who develop, to those who head, to those who just arrived.
Why environments become
Nobody decides to have different environments.
A developer installs the project today and gets the versions of today. A colleague installed it a year ago and no longer updated. A third one works on another operating system.
After a few months, the same code runs over five environments that look like each other but do not coincide. The differences are tiny: a database version, a setting, a library.
When the teams are more than one, each with their own favorite tools, the distance widens.
What costs, in practice
Bugs you can't replicate. The developer tries and does not see it. A discussion about who is right, when they are both right: the error exists, but only in one of the two environments.
Lost time to fix your computer. Past hours to understand why the project does not start after an update. I work that produces nothing for the customer.
Slow onboarding. A new person spends days running the project, following an old guide and calling for help to colleagues who stop their work.
Surprises in production. If development and testing are not similar, none of the two are necessarily similar to production. Some errors are only discovered there, in front of customers.
What is Docker, in simple words
Docker allows you to describe the environment of a project in a file: which system, such as versions, such as contour services such as databases and message queues.
From that file anyone gets the same environment, identical, with a command. The environment stops being something that everyone builds by hand. It becomes part of the project, versioned together with the code.
Think of the difference between giving ten cooks a recipe to voice and give everyone the same kitchen already equipped, with the same ingredients on the counter.
How to introduce a common base
I followed a case with multiple teams, different tools and non-uniform local setups. There were differences between developers and testing environments, Docker was not used, and bugs were hard to replicate.
The intervention had two parts: to define a common base with Docker and standardize tools and onboarding.
Start from a project only
Choose an active project and a medium complexity, not the simplest, because it would prove nothing, not the most intricate, because you would risk being drowned. It takes a first success that the rest of the company can see.
Describe everything you need to start
The goal is measurable: a new person clones the project, launches a command and has everything in operation.
Use the same environment for development and testing
This is where ghost bugs disappear. If the developer and the head start from the same definition, a behavior difference has a cause in the code, not in the machine.
Standardize the instruments that count
You don't need to impose on all the same editor. You need to agree on what affects the result: versions, code formatting, commands to start and test the project.
Rewrite the welcome guide
With a common base, the guide for newcomers passes from ten pages to a few lines. Keep it inside the project and let it try the next one who enters: it's the best test.
What changes after
In case I described the results were three: less problems of the type "it works from me", faster onboarding and a smoother collaboration between the teams.
When the environment is the same for everyone, an error signal stops being a discussion and becomes an information. Developers and testers return to working on the same problem instead of on two different versions of reality.
The limits, clearly defined
Docker's not free, and you should know first.
- It should be kept. The definition of the environment is code: if no one updates it, it ages like everything else.
- It requires some training. The basics are enough, but they are for everyone, not just those who have prepared the configuration.
- Can weigh on the least recent computers, especially with projects that start many services together.
- It doesn't fix a messed up project. If starting the application requires twenty unclear steps, Docker makes them repeatable, uncompressible.
For a small project, followed by a single person, it may not be worth the effort. As soon as people become three or four, the account almost always returns.
A quick test
Ask the last person who entered the team how long he spent to have the project working on his computer. If the answer is measured in days, you have an estimate of the cost you pay every new input and every computer replaced.
In shardana.ai, from Cabras (Oristano), we start from a technical audit: we look at code, environments and process of release and tell you where you lose time and what intervention makes you more.