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

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -

shared memory - gstreamer shmsrc and shmsink with h264 data -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -