M
M
Marina Mukhina2016-05-25 13:21:37
linux
Marina Mukhina, 2016-05-25 13:21:37

How to build an image via Dockerfile interactively?

I'm trying to build an image through a Dockerfile. When installing some components, scripts are executed where you need to enter the answer in the console. Those. Please choose [0] : and here a response from the console is expected.
In fact, either this line is repeated and fills everything, or after half a minute the assembly fails and the entered characters are already transferred to the console of the machine on which it is assembled.
Also, further it is planned that the installation of some components will be performed through the gui. Xming is installed, so the machine is configured. those. not in a container, everything should work fine. But apparently, with such an assembly, everything will not work out so simply.
How can you check this? Or just raise the image with your hands, set it up on it like in a regular console and commit it separately?
I also looked, there are options with rtk and porto from Yandex. Does anyone know if this can be done there?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Danil Biryukov-Romanov, 2016-05-25
@marimysh

Most software can either silently install (usually the -y switch) or read variables from the environment (look at the installation documentation).
For console installers, if neither is available, expect can be used - www.nist.gov/el/msid/expect.cfm

S
spotifi, 2016-05-25
@spotifi

Firstly, there are parameters like "-y" so that you won't be asked again.
Secondly, using the shell, you can substitute responses from environment variables, for example. Or from files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question