Created
January 4, 2019 15:07
-
-
Save markus1189/95579f72b9d502acedf8543796042d92 to your computer and use it in GitHub Desktop.
DockerTools Problem
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
{ pkgs ? import <nixpkgs> {} }: with pkgs.dockerTools; | |
let | |
someBaseImage = pullImage { | |
imageName = "nixos/nix"; | |
imageDigest = "sha256:1b97dc98b599779d80271d4203275627c0749d8bd5e9b9c868154249395cbc1b"; | |
sha256 = "134h20xgpqchcvgv0f13knsi2p7jfl4m9mk8hkvdgh8hnz0hj3hc"; | |
}; | |
in | |
buildImage { | |
name = "test"; | |
fromImage = someBaseImage; | |
contents = with pkgs; [ coreutils bash ]; | |
config = { | |
Cmd = [ "bash" ]; | |
}; | |
runAsRoot = '' | |
#!${pkgs.stdenv.shell} | |
echo WORKS | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment