1 { system ? builtins.currentSystem
3 , pkgs ? import ../.. { inherit system config; }
9 inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
11 mkOCITest = backend: makeTest {
12 name = "oci-containers-${backend}";
15 maintainers = with lib.maintainers; [ adisbladis benley mkaito ] ++ lib.teams.serokell.members;
19 ${backend} = { pkgs, ... }: {
20 virtualisation.oci-containers = {
23 image = "nginx-container";
24 imageFile = pkgs.dockerTools.examples.nginx;
33 ${backend}.wait_for_unit("${backend}-nginx.service")
34 ${backend}.wait_for_open_port(8181)
35 ${backend}.wait_until_succeeds("curl -f http://localhost:8181 | grep Hello")
40 lib.foldl' (attrs: backend: attrs // { ${backend} = mkOCITest backend; }) {} [