Skip to content

Instantly share code, notes, and snippets.

@loa
Last active August 29, 2015 14:18
Show Gist options
  • Save loa/64ceb69fd9ee8359b9b1 to your computer and use it in GitHub Desktop.
Save loa/64ceb69fd9ee8359b9b1 to your computer and use it in GitHub Desktop.
Dockerfile download hashsum install
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