From 6104ffafe93e2024df5c14634668fb6829dd892f Mon Sep 17 00:00:00 2001 From: Tim Dysinger Date: Tue, 29 Mar 2016 23:53:05 -0700 Subject: [PATCH] new docker image that contains 3 versions of gnupg --- etc/docker/ubuntu-with-nix-gnupg/Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 etc/docker/ubuntu-with-nix-gnupg/Dockerfile diff --git a/etc/docker/ubuntu-with-nix-gnupg/Dockerfile b/etc/docker/ubuntu-with-nix-gnupg/Dockerfile new file mode 100644 index 0000000000..41ea553a42 --- /dev/null +++ b/etc/docker/ubuntu-with-nix-gnupg/Dockerfile @@ -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"