I have a Dockerfile
which clones a repo and runs a shell script that exists inside that repo …
Example
RUN git clone https://github.com/DaehwanKimLab/hisat-genotype.git /hisatgenotype
WORKDIR /hisatgenotype
RUN ["/bin/bash", "setup.sh", "-r"]
The problem I have is that the script uses wget
but because docker
executes it as non-tty, the resulting progress is displayed in dot
mode.
This exceeds the buffer for the log not allowing me to see everything that’s happening during the docker build
.
I’d prefer to have the wget
progress be displayed as a bar, but how can I pass this to the script?
2
Answers
You can use SED to replace all your wget to use progress bar and quiet mode.
Also, add the
-i
to apply the change in the file.According to
wget
man pageSo you should add
--progress=bar:force
to yourwget
call.