diff options
author | Alex Auvolat <alex@adnab.me> | 2022-11-28 17:06:00 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-11-28 17:06:00 +0100 |
commit | 63e31b9ed97f34f4ea709f505c37f5e8968a0f36 (patch) | |
tree | dc01c11a7a7340c774a5b66ce40fc3962df2a094 /example | |
parent | cf4285e812e58c3e87583e3efa13897b7ad38dd0 (diff) | |
download | nomad-driver-nix2-63e31b9ed97f34f4ea709f505c37f5e8968a0f36.tar.gz nomad-driver-nix2-63e31b9ed97f34f4ea709f505c37f5e8968a0f36.zip |
Not work ; must fix executor for symlink
Diffstat (limited to 'example')
-rw-r--r-- | example/agent.hcl | 10 | ||||
-rw-r--r-- | example/example.hcl | 19 | ||||
-rw-r--r-- | example/example.nomad | 14 |
3 files changed, 24 insertions, 19 deletions
diff --git a/example/agent.hcl b/example/agent.hcl index c9dd670..f25b095 100644 --- a/example/agent.hcl +++ b/example/agent.hcl @@ -1,7 +1,7 @@ -log_level = "TRACE" +#log_level = "TRACE" -plugin "hello-driver" { - config { - shell = "bash" - } +client { +} + +plugin "exec2" { } diff --git a/example/example.hcl b/example/example.hcl new file mode 100644 index 0000000..fbbe4ad --- /dev/null +++ b/example/example.hcl @@ -0,0 +1,19 @@ +job "example" { + datacenters = ["dc1"] + type = "batch" + + group "example" { + task "hello-world" { + driver = "exec2" + + config { + command = "/nix/store/y41s1vcn0irn9ahn9wh62yx2cygs7qjj-coreutils-8.32/bin/cat" + args = ["/host-etc/nscd.conf"] + bind_read_only = { + "/nix" = "/nix", + "/etc" = "/host-etc", + } + } + } + } +} diff --git a/example/example.nomad b/example/example.nomad deleted file mode 100644 index cf7e73c..0000000 --- a/example/example.nomad +++ /dev/null @@ -1,14 +0,0 @@ -job "example" { - datacenters = ["dc1"] - type = "batch" - - group "example" { - task "hello-world" { - driver = "hello-world-example" - - config { - greeting = "hello" - } - } - } -} |