aboutsummaryrefslogtreecommitdiff
path: root/example/example.hcl
blob: fbbe4ada2f7dd51ccd07d9d3420dfa519eb657aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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",
        }
      }
    }
  }
}