-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from infosiftr/fix-gpg
Fix "gpg" usage to stop relying on deprecated and insecure behavior
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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* | ||
|
||
|