github.com/hernad/nomad@v1.6.112/e2e/podman/input/podman_basic.hcl (about)

     1  # Copyright (c) HashiCorp, Inc.
     2  # SPDX-License-Identifier: MPL-2.0
     3  
     4  job "podman_basic" {
     5  
     6    constraint {
     7      attribute = "${attr.kernel.name}"
     8      value     = "linux"
     9    }
    10  
    11    group "cache" {
    12      network {
    13        port "db" {
    14          to = 6379
    15        }
    16      }
    17  
    18      task "redis" {
    19        driver = "podman"
    20  
    21        config {
    22          image = "redis:7"
    23          ports = ["db"]
    24        }
    25  
    26        resources {
    27          cpu    = 50
    28          memory = 128
    29        }
    30      }
    31    }
    32  }