0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
27 lines
797 B
Nix
27 lines
797 B
Nix
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "docker-preloader";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ lewo ];
|
|
};
|
|
|
|
nodes = {
|
|
docker =
|
|
{ pkgs, ... }:
|
|
{
|
|
virtualisation.docker.enable = true;
|
|
virtualisation.dockerPreloader.images = [ pkgs.dockerTools.examples.nix pkgs.dockerTools.examples.bash ];
|
|
|
|
services.openssh.enable = true;
|
|
services.openssh.permitRootLogin = "yes";
|
|
services.openssh.extraConfig = "PermitEmptyPasswords yes";
|
|
users.extraUsers.root.password = "";
|
|
};
|
|
};
|
|
testScript = ''
|
|
startAll;
|
|
|
|
$docker->waitForUnit("sockets.target");
|
|
$docker->succeed("docker run nix nix-store --version");
|
|
$docker->succeed("docker run bash bash --version");
|
|
'';
|
|
})
|