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.
Comments
Post a Comment