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}";
14 meta.maintainers = lib.teams.serokell.members
15 ++ (with lib.maintainers; [ adisbladis benley mkaito ]);
18 ${backend} = { pkgs, ... }: {
19 virtualisation.oci-containers = {
22 image = "nginx-container";
23 imageFile = pkgs.dockerTools.examples.nginx;
32 ${backend}.wait_for_unit("${backend}-nginx.service")
33 ${backend}.wait_for_open_port(8181)
34 ${backend}.wait_until_succeeds("curl -f http://localhost:8181 | grep Hello")
39 lib.foldl' (attrs: backend: attrs // { ${backend} = mkOCITest backend; }) {} [