bash - How to answer command line prompts in script in docker -


i'm running dockerfile looks this:

from alexhermstad/arch-pypi2pkgbuild-kolibri maintainer alex hermstad user kol workdir /home/kol/pypi2pkgbuild cmd ["python", "./pypi2pkgbuild.py", "--pre", "kolibri"] 

within pypi2pkgbuild.py, there's prompt comes up, says:

:: proceed installation? [y/n] 

is there anyway can use docker automatically press 'n' skip installation? searched bit , not find solution using dockerfile.

you try send directly script

cmd ["start.sh"]  #start.sh echo "n" | python ./pypi2pkgbuild.py --pre kolibri 

if no option, there tool called "expect" handle interactive prompts.

expect


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -