From 63e31b9ed97f34f4ea709f505c37f5e8968a0f36 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 28 Nov 2022 17:06:00 +0100 Subject: Not work ; must fix executor for symlink --- example/agent.hcl | 10 +++++----- example/example.hcl | 19 +++++++++++++++++++ example/example.nomad | 14 -------------- 3 files changed, 24 insertions(+), 19 deletions(-) create mode 100644 example/example.hcl delete mode 100644 example/example.nomad (limited to 'example') 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" - } - } - } -} -- cgit v1.2.3