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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

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

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -