L
L
link772018-06-25 18:36:23
bash
link77, 2018-06-25 18:36:23

How to create an environment for testers using docker?

Good afternoon.
The task is to create an isolated environment on the test server for testing applications in php at the expense of docker compose. Those. the tester connects to the server via ssh, then runs the bash script, and a test environment is deployed for it. But for the life of me, I can't figure out how it's going to work. How to make sure that each tester launches his own environment, and that his environment does not overlap with the environments of another tester.
I read a lot on the Internet, but there are trivial examples, 1 docker-campose.yml file, but I have about 20 of them in the project ..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2018-06-25
@MaxDukov

no problem. examples for LAMP for composer shaft. If you plan to run all this goodness on 1 server, then to separate the environments between developers, you will have to separate them into different ports (or different addresses, if you raise subinterfaces). Further, testers will be able to enter each into their environment at the address:port.
a slightly more elegant solution is to put a reverse proxy on the same nginx at the entrance, then you can enter by name.
the code can be delivered inside the container either by pumping it out when the container starts, or by mounting the directory with the code from the server inside. There are probably 33 more ways.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question