mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 17:41:12 +00:00
c1eb962516
This change adds a simple integration test exercising the fetchdocker Nix code and hocker utilities for the simple `hello-world` docker container. We exercise: - Fetching the docker image configuration json - Fetching the docker image layers - Building a compositor script - Loading the `hello-world` docker image into docker using the compositor script and `docker load` - Running that loaded container
16 lines
380 B
Nix
16 lines
380 B
Nix
import ../make-test.nix ({ pkgs, ...} : {
|
|
name = "test-hocker-fetchdocker";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ ixmatus ];
|
|
};
|
|
|
|
machine = import ./machine.nix;
|
|
|
|
testScript = ''
|
|
startAll;
|
|
|
|
$machine->waitForUnit("sockets.target");
|
|
$machine->waitUntilSucceeds("docker run registry-1.docker.io/v2/library/hello-world:latest");
|
|
'';
|
|
})
|