Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaste committed Aug 21, 2024
1 parent e9ab511 commit 1ebb7e6
Show file tree
Hide file tree
Showing 14 changed files with 146 additions and 735 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ trace-documentation:
###
### Workbench
###
workbench-ci: workbench-ci-test ci-test-auto ci-test-autonix ci-test-autonomadpodman
workbench-ci: workbench-ci-test ci-test-auto ci-test-autonix
CI_TARGETS := hlint workbench-ci haddock-hoogle
ci: ci-report ci-targets
ci-report:
Expand Down
2 changes: 0 additions & 2 deletions lib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ $$(foreach prof,$(1),$$(eval $$(call proftgt,$$(prof)-nix, $$(prof)
$$(foreach prof,$(1),$$(eval $$(call proftgt,$$(prof)-autonix, $$(prof), true,false, true,false, false, supervisor)))
$$(foreach prof,$(1),$$(eval $$(call proftgt,$$(prof)-nomadexec, $$(prof), true,false,false,false, false, nomadexec)))
$$(foreach prof,$(1),$$(eval $$(call proftgt,$$(prof)-nomadexec-auto, $$(prof), true,false, true,false, false, nomadexec)))
$$(foreach prof,$(1),$$(eval $$(call proftgt,$$(prof)-nomadpodman, $$(prof), true,false,false,false, false, nomadpodman)))
$$(foreach prof,$(1),$$(eval $$(call proftgt,$$(prof)-nomadpodman-auto, $$(prof), true,false, true,false, false, nomadpodman)))
endef

define define_profile_targets_nomadcloud
Expand Down
2 changes: 0 additions & 2 deletions nix/pkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ let
import ./workbench/backend/nomad/cloud.nix params;
nomadexec = params:
import ./workbench/backend/nomad/exec.nix params;
nomadpodman = params:
import ./workbench/backend/nomad/podman.nix params;
supervisor = params:
import ./workbench/backend/supervisor.nix params;
}
Expand Down
240 changes: 73 additions & 167 deletions nix/workbench/backend/nomad-job.nix

Large diffs are not rendered by default.

39 changes: 0 additions & 39 deletions nix/workbench/backend/nomad.nix
Original file line number Diff line number Diff line change
Expand Up @@ -160,49 +160,16 @@ let
[ diretories.run "supervisor" "supervisord.conf"]
;
};
ociImage = import ./oci-images.nix
{ inherit pkgs lib;
inherit containerPkgs;
}
;
nomadJob =
{ inherit generatorTaskName; }
//
lib.attrsets.optionalAttrs (subBackendName == "podman") {
podman = {
# TODO: oneTracerPerGroup
oneTracerPerCluster = import ./nomad-job.nix
{ inherit pkgs lib stateDir;
inherit profileData;
inherit containerSpecs;
# May evolve to a "cloud" flag!
execTaskDriver = false;
inherit generatorTaskName;
oneTracerPerNode = false;
withSsh = false;
};
oneTracerPerNode = import ./nomad-job.nix
{ inherit pkgs lib stateDir;
inherit profileData;
inherit containerSpecs;
# May evolve to a "cloud" flag!
execTaskDriver = false;
inherit generatorTaskName;
oneTracerPerNode = true;
withSsh = false;
};
};
}
//
lib.attrsets.optionalAttrs (subBackendName == "exec") {
exec = {
# TODO: oneTracerPerGroup
oneTracerPerCluster = import ./nomad-job.nix
{ inherit pkgs lib stateDir;
inherit profileData;
inherit containerSpecs;
# May evolve to a "cloud" flag!
execTaskDriver = true;
inherit generatorTaskName;
oneTracerPerNode = false;
withSsh = false;
Expand All @@ -211,8 +178,6 @@ let
{ inherit pkgs lib stateDir;
inherit profileData;
inherit containerSpecs;
# May evolve to a "cloud" flag!
execTaskDriver = true;
inherit generatorTaskName;
oneTracerPerNode = true;
withSsh = false;
Expand All @@ -228,8 +193,6 @@ let
{ inherit pkgs lib stateDir;
inherit profileData;
inherit containerSpecs;
# May evolve to a "cloud" flag!
execTaskDriver = true;
inherit generatorTaskName;
oneTracerPerNode = true;
withSsh = false;
Expand All @@ -238,8 +201,6 @@ let
{ inherit pkgs lib stateDir;
inherit profileData;
inherit containerSpecs;
# May evolve to a "cloud" flag!
execTaskDriver = true;
inherit generatorTaskName;
oneTracerPerNode = true;
withSsh = true;
Expand Down
Loading

0 comments on commit 1ebb7e6

Please sign in to comment.