I
I
isaac-212021-01-19 21:51:58
Scrapy
isaac-21, 2021-01-19 21:51:58

What is the correct way to execute many commands in Docker?

Please tell
me there is a project with several parsers (some are written in scrapy),
I want to run each parser for a specific site on the docker, but a dilemma arose, there are a lot of commands.
after searching the Internet I found a solution, create a bash script, write down all the commands there
and then run the docker and directly run the script in CMD,
so the question arises how much this is the right solution, if I understand correctly, then it will not be necessary to install python in the docker, and ubuntu, and there already install python and run everything, right?
If suddenly there is another solution, I will be very grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2021-01-19
@isaac-21

How to correctly execute many commands in Docker

Almost everything is the same as you would run them without docker
I want to run them on docker, but a dilemma arose, there are a lot of commands

I see no dilemma or problem
searching the Internet found a solution, create a bash script, write down all the commands there

why bash script if you can run python script right away?
then it will not be necessary to install python in the docker, but ubuntu, and there already install python and run everything, right?

some kind of nonsense - take the official image - yes, use it. Everything that needs to be collected is already there ....
But in general - for your case, the very need to use docker is incomprehensible

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question