Skip to content

Commit

Permalink
Remove dependency on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
owickstrom committed Nov 7, 2022
1 parent 4cf045f commit d560e4d
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,26 @@ let
'';
};

ubuntu = pkgs.dockerTools.pullImage {
imageName = "ubuntu";
imageDigest =
"sha256:edc5125bd9443ab5d5c92096cf0e481f5e8cb12db9f5461ab1ab7a936c7f7d30";
sha256 = "sha256-TZSqaLl28S71CLmfn5HEIN+/1UCPMrLlqpr5D0VcULg=";
finalImageTag = "22.10";
finalImageName = "ubuntu";
};

docker = pkgs.dockerTools.buildImage {
fromImage = ubuntu;
name = "quickstrom/quickstrom";
tag = "latest";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [
(quickstrom-wrapped { includeBrowsers = true; })
pkgs.coreutils
pkgs.bashInteractive
pkgs.dockerTools.caCertificates
];
pathsToLink = [ "/bin" "/etc" ];
};
extraCommands = "mkdir -p -m 0777 tmp";
config = {
Cmd = [ "quickstrom" ];
Env = [
# Required for Chrome/Chromium rendering. It needs fallback fonts.
"FONTCONFIG_FILE=${pkgs.fontconfig.out}/etc/fonts/fonts.conf"
];
];
};
};
in {
Expand Down

0 comments on commit d560e4d

Please sign in to comment.