Send keystroke to Dockerfile, Ubuntu
I’m creating Dockerfile script and it has a command line that executes a program and requires user input 1 from keyboard as selected option to go to further steps.
Xdotool, man yes or expect cannot help in this situation.
First off, download and extract RevoMath library, navigate to RevoMath folder then execute the install script.
... RUN wget -q https://mran.microsoft.com/install/mro/3.2.4/RevoMath-3.2.4.tar.gz RUN tar -xzf RevoMath-3.2.4.tar.gz RUN cd RevoMath/ RUN ./RevoMath.sh ...
Install script has some select options as follow:
echo "1. Install MKL" echo "2. Uninstall MKL" echo "3. Exit utility"
We need to enter 1 from keyboard to install. How can we do it via Docker command?
Any help would be appreciated!