aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-11-28 17:06:00 +0100
committerAlex Auvolat <alex@adnab.me>2022-11-28 17:06:00 +0100
commit63e31b9ed97f34f4ea709f505c37f5e8968a0f36 (patch)
treedc01c11a7a7340c774a5b66ce40fc3962df2a094 /example
parentcf4285e812e58c3e87583e3efa13897b7ad38dd0 (diff)
downloadnomad-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.hcl10
-rw-r--r--example/example.hcl19
-rw-r--r--example/example.nomad14
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"
- }
- }
- }
-}