github.com/hernad/nomad@v1.6.112/e2e/isolation/input/chroot_docker.nomad (about)

     1  # Copyright (c) HashiCorp, Inc.
     2  # SPDX-License-Identifier: MPL-2.0
     3  
     4  job "chroot_docker" {
     5    type = "batch"
     6  
     7    constraint {
     8      attribute = "${attr.kernel.name}"
     9      value     = "linux"
    10    }
    11  
    12    group "print" {
    13      task "env" {
    14        driver = "docker"
    15        config {
    16          image = "busybox:1"
    17          args = [
    18            "/bin/sh",
    19            "-c",
    20            "echo $NOMAD_ALLOC_DIR; echo $NOMAD_TASK_DIR; echo $NOMAD_SECRETS_DIR; echo $PATH"
    21          ]
    22        }
    23        resources {
    24          cpu    = 50
    25          memory = 50
    26        }
    27      }
    28    }
    29  }