github.com/hernad/nomad@v1.6.112/e2e/artifact/input/artifact_linux.nomad (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "linux" { 5 datacenters = ["dc1"] 6 type = "batch" 7 8 constraint { 9 attribute = "${attr.kernel.name}" 10 value = "linux" 11 } 12 13 group "rawexec" { 14 15 task "rawexec_file_default" { 16 artifact { 17 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 18 } 19 driver = "raw_exec" 20 config { 21 command = "cat" 22 args = ["local/go.mod"] 23 } 24 resources { 25 cpu = 16 26 memory = 32 27 disk = 64 28 } 29 } 30 31 task "rawexec_file_custom" { 32 artifact { 33 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 34 destination = "local/my/path" 35 } 36 driver = "raw_exec" 37 config { 38 command = "cat" 39 args = ["local/my/path/go.mod"] 40 } 41 resources { 42 cpu = 16 43 memory = 32 44 disk = 64 45 } 46 } 47 48 task "rawexec_file_alloc_dots" { 49 artifact { 50 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 51 destination = "../alloc/go.mod" 52 mode = "file" 53 } 54 driver = "raw_exec" 55 config { 56 command = "cat" 57 args = ["../alloc/go.mod"] 58 } 59 resources { 60 cpu = 16 61 memory = 32 62 disk = 64 63 } 64 } 65 66 task "rawexec_file_alloc_env" { 67 artifact { 68 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 69 destination = "${NOMAD_ALLOC_DIR}/go.mod" 70 mode = "file" 71 } 72 driver = "raw_exec" 73 config { 74 command = "cat" 75 args = ["${NOMAD_ALLOC_DIR}/go.mod"] 76 } 77 resources { 78 cpu = 16 79 memory = 32 80 disk = 64 81 } 82 } 83 84 task "rawexec_zip_default" { 85 artifact { 86 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 87 } 88 driver = "raw_exec" 89 config { 90 command = "cat" 91 args = ["local/go-set-main/go.mod"] 92 } 93 resources { 94 cpu = 16 95 memory = 32 96 disk = 64 97 } 98 } 99 100 task "rawexec_zip_custom" { 101 artifact { 102 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 103 destination = "local/my/zip" 104 } 105 driver = "raw_exec" 106 config { 107 command = "cat" 108 args = ["local/my/zip/go-set-main/go.mod"] 109 } 110 resources { 111 cpu = 16 112 memory = 32 113 disk = 64 114 } 115 } 116 117 task "rawexec_git_custom" { 118 artifact { 119 source = "git::https://github.com/hashicorp/go-set" 120 destination = "local/repository" 121 } 122 driver = "raw_exec" 123 config { 124 command = "cat" 125 args = ["local/repository/go.mod"] 126 } 127 resources { 128 cpu = 16 129 memory = 32 130 disk = 64 131 } 132 } 133 } 134 135 group "exec" { 136 task "exec_file_default" { 137 artifact { 138 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 139 } 140 driver = "exec" 141 config { 142 command = "cat" 143 args = ["local/go.mod"] 144 } 145 resources { 146 cpu = 16 147 memory = 32 148 disk = 256 149 } 150 } 151 152 task "exec_file_custom" { 153 artifact { 154 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 155 destination = "local/my/path" 156 } 157 driver = "exec" 158 config { 159 command = "cat" 160 args = ["local/my/path/go.mod"] 161 } 162 resources { 163 cpu = 16 164 memory = 32 165 disk = 256 166 } 167 } 168 169 task "exec_file_alloc" { 170 artifact { 171 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 172 destination = "${NOMAD_ALLOC_DIR}/go.mod" 173 mode = "file" 174 } 175 driver = "exec" 176 config { 177 command = "cat" 178 args = ["${NOMAD_ALLOC_DIR}/go.mod"] 179 } 180 resources { 181 cpu = 16 182 memory = 32 183 disk = 64 184 } 185 } 186 187 task "exec_zip_default" { 188 artifact { 189 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 190 } 191 driver = "exec" 192 config { 193 command = "cat" 194 args = ["local/go-set-main/go.mod"] 195 } 196 resources { 197 cpu = 16 198 memory = 32 199 disk = 256 200 } 201 } 202 203 task "exec_zip_custom" { 204 artifact { 205 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 206 destination = "local/my/zip" 207 } 208 driver = "exec" 209 config { 210 command = "cat" 211 args = ["local/my/zip/go-set-main/go.mod"] 212 } 213 resources { 214 cpu = 16 215 memory = 32 216 disk = 256 217 } 218 } 219 220 task "exec_git_custom" { 221 artifact { 222 source = "git::https://github.com/hashicorp/go-set" 223 destination = "local/repository" 224 } 225 driver = "exec" 226 config { 227 command = "cat" 228 args = ["local/repository/go.mod"] 229 } 230 resources { 231 cpu = 16 232 memory = 32 233 disk = 256 234 } 235 } 236 } 237 238 group "docker" { 239 task "docker_file_default" { 240 artifact { 241 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 242 } 243 driver = "docker" 244 config { 245 image = "bash:5" 246 args = ["cat", "local/go.mod"] 247 } 248 resources { 249 cpu = 16 250 memory = 32 251 disk = 64 252 } 253 } 254 255 task "docker_file_custom" { 256 artifact { 257 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 258 destination = "local/my/path" 259 } 260 driver = "docker" 261 config { 262 image = "bash:5" 263 args = ["cat", "local/my/path/go.mod"] 264 } 265 resources { 266 cpu = 16 267 memory = 32 268 disk = 64 269 } 270 } 271 272 task "docker_file_alloc" { 273 artifact { 274 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 275 destination = "${NOMAD_ALLOC_DIR}/go.mod" 276 mode = "file" 277 } 278 driver = "docker" 279 config { 280 image = "bash:5" 281 args = ["cat", "${NOMAD_ALLOC_DIR}/go.mod"] 282 } 283 resources { 284 cpu = 16 285 memory = 32 286 disk = 64 287 } 288 } 289 290 task "docker_zip_default" { 291 artifact { 292 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 293 } 294 driver = "docker" 295 config { 296 image = "bash:5" 297 args = ["cat", "local/go-set-main/go.mod"] 298 } 299 resources { 300 cpu = 16 301 memory = 32 302 disk = 64 303 } 304 } 305 306 task "docker_zip_custom" { 307 artifact { 308 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 309 destination = "local/my/zip" 310 } 311 driver = "docker" 312 config { 313 image = "bash:5" 314 args = ["cat", "local/my/zip/go-set-main/go.mod"] 315 } 316 resources { 317 cpu = 16 318 memory = 32 319 disk = 64 320 } 321 } 322 323 task "docker_git_custom" { 324 artifact { 325 source = "git::https://github.com/hashicorp/go-set" 326 destination = "local/repository" 327 } 328 driver = "docker" 329 config { 330 image = "bash:5" 331 args = ["cat", "local/repository/go.mod"] 332 } 333 resources { 334 cpu = 16 335 memory = 32 336 disk = 64 337 } 338 } 339 } 340 }