Skip to content

Commit

Permalink
Port docker.nix to the new Nix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed May 13, 2020
1 parent bb0a31a commit 0d6d512
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docker.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Builds a docker image with latest neuron from master branch.
# Builds a docker image containing the neuron executable
# Run as:
# docker load -i $(nix-build docker.nix)
let
Expand All @@ -9,14 +9,11 @@ let
imageDigest = "sha256:a969b4f238eab9298fe426fc90cc45efe01685431a419ca2907f10ddbbed2b7f";
sha256 = "1zy4zwlka5c4hgjbgy8xh1ikyb3z2lwzfjwv8y0cyzx1danys4vk";
};
neuron =
let src = builtins.fetchGit { url = "https://github.com/srid/neuron"; ref = "master"; };
in import src.outPath { gitRev = src.shortRev; };
in

pkgs.dockerTools.buildImage {
fromImage = baseImage;
name = "sridca/neuron";
tag = "test";
contents = [ neuron ];
contents = [ (import ./.) ];
}

0 comments on commit 0d6d512

Please sign in to comment.