Skip to content

Commit

Permalink
Add sha256sum verification of vbox.dmg so that we fail sooner if our …
Browse files Browse the repository at this point in the history
…version numbers are off
  • Loading branch information
tianon committed Dec 16, 2014
1 parent 6291f34 commit 8ba39c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ RUN curl -sSL https://github.com/mackyle/xar/archive/xar-1.6.1.tar.gz | tar xvz
ENV VBOX_VERSION 4.3.18
ENV VBOX_REV 96516

RUN curl -sSL -o /vbox.dmg http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VirtualBox-$VBOX_VERSION-$VBOX_REV-OSX.dmg
RUN curl -sSL -o /vbox.dmg http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VirtualBox-$VBOX_VERSION-$VBOX_REV-OSX.dmg \
&& echo "$(curl -sSL 'http://download.virtualbox.org/virtualbox/'"$VBOX_VERSION"'/SHA256SUMS' | awk '$2 ~ /-OSX.dmg$/ { print $1 }') */vbox.dmg" | sha256sum -c -

# Download the Docker parts

Expand Down

0 comments on commit 8ba39c7

Please sign in to comment.