Skip to content

Commit

Permalink
Merge pull request #7 from infosiftr/fix-gpg
Browse files Browse the repository at this point in the history
Fix "gpg" usage to stop relying on deprecated and insecure behavior
  • Loading branch information
yosifkit committed Feb 29, 2016
2 parents 137a02b + 4c64514 commit 1b6d262
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates git \
&& rm -rf /var/lib/apt/lists/*

# http://julialang.org/juliareleases.asc
# Julia (Binary signing key) <[email protected]>
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 3673DF529D9049477F76B37566E3C7DC03D6E495

ENV JULIA_PATH /usr/local/julia
ENV JULIA_VERSION 0.4.3

RUN mkdir $JULIA_PATH \
&& apt-get update && apt-get install -y curl \
&& curl -sSL "https://julialang.s3.amazonaws.com/bin/linux/x64/${JULIA_VERSION%[.-]*}/julia-${JULIA_VERSION}-linux-x86_64.tar.gz" -o julia.tar.gz \
&& curl -sSL "https://julialang.s3.amazonaws.com/bin/linux/x64/${JULIA_VERSION%[.-]*}/julia-${JULIA_VERSION}-linux-x86_64.tar.gz.asc" -o julia.tar.gz.asc \
&& gpg --verify julia.tar.gz.asc \
&& export GNUPGHOME="$(mktemp -d)" \
# http://julialang.org/juliareleases.asc
# Julia (Binary signing key) <[email protected]>
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 3673DF529D9049477F76B37566E3C7DC03D6E495 \
&& gpg --batch --verify julia.tar.gz.asc julia.tar.gz \
&& rm -r "$GNUPGHOME" julia.tar.gz.asc \
&& tar -xzf julia.tar.gz -C $JULIA_PATH --strip-components 1 \
&& rm -rf /var/lib/apt/lists/* julia.tar.gz*

Expand Down

0 comments on commit 1b6d262

Please sign in to comment.