Skip to content

Commit

Permalink
new docker image that contains 3 versions of gnupg
Browse files Browse the repository at this point in the history
  • Loading branch information
dysinger committed Mar 31, 2016
1 parent 1c89cb5 commit 6104ffa
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions etc/docker/ubuntu-with-nix-gnupg/Dockerfile
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"

0 comments on commit 6104ffa

Please sign in to comment.