Answer the question
In order to leave comments, you need to log in
Containerization for local development?
Hello everyone, we are developing an online store. We work according to the classical scheme, we have dev and production, we conduct all development locally.
The problem is this: the project is quite large, new developers are constantly appearing, and everyone needs to be explained that they need to install OpenServer, choose the desired configuration, a bunch of settings, etc.
Naturally, I wrote instructions, but I understand that this cannot continue, because. every new developer spends a couple of days setting up the environment.
We enjoy working on OpenServer because the file structure of the project is available right on our work computer, and any IDE can open the project without any problems.
I started reading about docker, I understand that this is what we need.
But there are many questions that I can’t find answers to: Do I
understand correctly that docker can also be safely used locally on windows? How do you deploy docker locally?
When deploying a project through docker, some kind of virtualization is created. How then to work with the project through the IDE? If the whole project environment is on linux, and we work on windows, how do people work through the IDE in such cases?
Answer the question
In order to leave comments, you need to log in
Do I understand correctly that docker can also be safely used locally on windows? How do you deploy docker locally?
Do I understand correctly that docker can also be safely used locally on windows?
Do I understand correctly that docker can also be safely used locally on windows?- right
How do you deploy docker locally?- https://docs.docker.com/docker-for-windows/install/
How then to work with the project through the IDE?- if we are talking about php, then PhpStorm integration is implemented and described perfectly
If the whole project environment is on linux, and we work on windows, how do people work through the IDE in such cases?- here you will raise your linux environment in a docker container
this cannot continue, because every new developer spends a couple of days setting up the environment.
Do I understand correctly that docker can also be safely used locally on windows?Correctly.
How do you deploy docker locally?For Mac or Windows, download Docker Desktop .
docker-compose.yml
your project file and docker-compose up
And then go inside the containers, or run additional temporary ones - with all sorts of git clone
, composer install
, npm i
, mysql -p${MYSQL_ROOT_PASSWORD} < database_init.sql
etc.When deploying a project through docker, some kind of virtualization is created.Not really. Docker is not virtualization, but containerization. There is no virtual machine, unlike, for example, VirtualBox. At the household level, there are some isolated virtual boxes-containers, from which, maybe, a port sticks out. And these boxes see each other as computers in the local network.
How then to work with the project through the IDE? If the whole project environment is on linux, and we work on windows, how do people work through the IDE in such cases?Alternatively, work as a remote Linux server. Connect to it via SSH, the same VS Code can use the Remote-SSH extension .
docker cp ./local.file containerName://var/www/remote.file
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question