mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-12-22 05:51:32 -06:00
Merge pull request #154 from sickcodes/wget-options
Add an unset WGET_OPTIONS variable for hub.docker.com to download 20GB silently, but not general users.
This commit is contained in:
commit
7dc344ef44
@ -119,10 +119,13 @@ ARG IMAGE_URL='https://images2.sick.codes/mac_hdd_ng_auto.img'
|
|||||||
|
|
||||||
# use the COMPLETE arg, for a complete image, ready to boot.
|
# use the COMPLETE arg, for a complete image, ready to boot.
|
||||||
# otherwise use your own image: -v "$PWD/disk.img":/image
|
# otherwise use your own image: -v "$PWD/disk.img":/image
|
||||||
|
ARG WGET_OPTIONS=
|
||||||
|
# ARG WGET_OPTIONS='--no-verbose'
|
||||||
|
|
||||||
RUN if [[ "${COMPLETE}" ]]; then \
|
RUN if [[ "${COMPLETE}" ]]; then \
|
||||||
echo "Downloading 20GB+ image... This step might take a while... Press Ctrl+C if you want to abort." \
|
echo "Downloading 20GB+ image... This step might take a while... Press Ctrl+C if you want to abort." \
|
||||||
; rm -f /home/arch/OSX-KVM/mac_hdd_ng.img \
|
; rm -f /home/arch/OSX-KVM/mac_hdd_ng.img \
|
||||||
&& wget --no-verbose -O /home/arch/OSX-KVM/mac_hdd_ng.img "${IMAGE_URL}" \
|
&& wget ${WGET_OPTIONS} -O /home/arch/OSX-KVM/mac_hdd_ng.img "${IMAGE_URL}" \
|
||||||
; fi
|
; fi
|
||||||
|
|
||||||
RUN mv ./Launch-nopicker.sh ./Launch.sh
|
RUN mv ./Launch-nopicker.sh ./Launch.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user