D
D
Dima Zherebko2016-10-04 22:22:11
linux
Dima Zherebko, 2016-10-04 22:22:11

How to set up Docker containers and Ci correctly?

There is a server on which you need postgresql + dotnet, and plus for dotnet you need supervisor and nginx for server proxy.
There is also a Continua CI server that builds files and, in case of a successful build, uploads them to the server and executes some script for deployment.
1. Do I need a docker in this case? Now there the script simply stops the supervisor and uploads the necessary files to the correct directory and then starts the supervisor again.
It seemed to me that in this case, only problems and extra load on the server will come from the docker. Since you will need to rebuild the image every time new files are uploaded.
2. If docker is not needed, then what tool should I use to deploy such a simple infrastructure?
Dotnet+nginx+{some}sql;
3. What is the correct way to integrate ci+ docker ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hoarywolf, 2016-10-05
@G_tost

With docker, your files are built into an image (this does not have to be done on the server), a container from which you can run on a test server, on machines from developers or on a production server. Moreover, on a combat server, you simply extinguish the old container and launch a new one. If something is wrong, switch them back.
Moreover, when building an image, you can update the OS files and libraries inside to the current ones and run the container through tests, checking not only your code, but also compatibility, and indeed the whole work.
That is, in fact, you will have an image application, portable, with all the libraries and settings inside. At the same time, the base and nginx are outside the container, for example, in their own containers.
But here you need to understand that with this approach, you will need to transfer the image to the server each time (with pens in tgz or through the repository), and this is usually hundreds of megs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question