Last active
August 29, 2015 14:18
-
-
Save loa/64ceb69fd9ee8359b9b1 to your computer and use it in GitHub Desktop.
Dockerfile download hashsum install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:wheezy | |
ENV RIAKCS_DOWNLOAD_SHA1=caae1342618958fc9c1bc7e79a8596ca27866b3a | |
ENV RIAKCS_DOWNLOAD_URL=http://s3.amazonaws.com/downloads.basho.com/riak-cs/2.0/2.0.0/debian/7/riak-cs_2.0.0-1_amd64.deb | |
RUN buildDeps='curl gdebi-core'; \ | |
set -x \ | |
&& apt-get update \ | |
&& apt-get install -y $buildDeps --no-install-recommends \ | |
&& curl -sSL "$RIAKCS_DOWNLOAD_URL" -o riakcs.deb \ | |
&& echo "$RIAKCS_DOWNLOAD_SHA1 *riakcs.deb" | sha1sum -c - \ | |
&& gdebi riakcs.deb \ | |
&& rm riakcs.deb \ | |
&& apt-get purge -y --auto-remove $buildDeps \ | |
&& rm -rf /var/lib/apt/lists/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment