forked from commercialhaskell/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new docker image that contains 3 versions of gnupg
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM ubuntu:14.04 | ||
|
||
# SETUP GROUP/USERS | ||
ENV USER root | ||
RUN groupadd -r nixbld | ||
RUN useradd -c "Nix Build User" -d /var/empty -g nixbld -G nixbld \ | ||
-M -N -r -s "$(which nologin)" nixbld | ||
|
||
# INSTALL NIX | ||
RUN apt-get update | ||
RUN apt-get -y install curl | ||
RUN curl -s https://nixos.org/nix/install | sh | ||
RUN cp /nix/var/nix/profiles/default/etc/profile.d/nix.sh /etc/profile.d/ | ||
RUN bash -lc "nix-channel --update" | ||
|
||
# INSTALL ALL 3 VERSIONS OF GNUPG INTO SEPARATE PROFILES | ||
RUN bash -lc "nix-env -p /nix/var/nix/profiles/default -iA nixpkgs.gnupg" | ||
RUN bash -lc "nix-env -p /nix/var/nix/profiles/gnupg20 -iA nixpkgs.gnupg20" | ||
RUN bash -lc "nix-env -p /nix/var/nix/profiles/gnupg14 -iA nixpkgs.gnupg1" |