C
C
cold1472016-03-28 21:22:37
linux
cold147, 2016-03-28 21:22:37

How to use Docker for development?

What is the benefit of using docker in development?
The IDE does not accept php shortcuts, and in order to simply run the tests, you need to create a container, run the tests and delete the container, which is very slow.
ps I liked the docker for deployment, but it seems to me to use it during development, or is it AD or am I doing something wrong?.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Grachev, 2016-03-28
@cold147

What shorts are you talking about?
For all cli operations, I run the container interactively and do everything there.
To the question of the launch time of containers. I recently installed an SSD, the overhead disappeared when the container started. Compose from nginx, php-fpm, mysql, redis, thumor starts in less than 3 seconds.
And the profit in development is the identity of the service versions with the prod environment. One project has to be developed under php 5.5, the other under 5.6, the third under 7. I have the necessary environment for each project, although php is not installed on the host at all.

S
Sanes, 2016-03-28
@Sanes

Think of a docker container as a customized server instance.
That's all the profit.

M
MagnetonBora, 2016-03-28
@MagnetonBora

Read this blog here. There you can find something interesting for yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question