Skip to content

Commit

Permalink
fixup! fixup! fixup! [OPS-1463] Docker networks and volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sereja313 committed Dec 12, 2023
1 parent ae14129 commit ca010cd
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions tests/docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,19 @@
import "${nixpkgs}/nixos/tests/make-test-python.nix" ({...} : {
name = "docker";
nodes = {
docker = {...}:
{
imports = [ self.nixosModules.docker ];
virtualisation.docker = {
enable = true;
volumes = [ "thevolume" ];
networks.thenetwork = {
driver = "bridge";
subnet = "172.28.0.0/16";
ip-range = "172.28.5.0/24";
gateway = "172.28.5.254";
};
docker = {...}: {
imports = [ self.nixosModules.docker ];
virtualisation.docker = {
enable = true;
volumes = [ "thevolume" ];
networks.thenetwork = {
driver = "bridge";
subnet = "172.28.0.0/16";
ip-range = "172.28.5.0/24";
gateway = "172.28.5.254";
};

};
};
};

testScript = ''
Expand Down

0 comments on commit ca010cd

Please sign in to comment.