From e7feb98a01f32b63ca8b191b81dd7ce2ccd5c686 Mon Sep 17 00:00:00 2001 From: Lang Martin Date: Wed, 13 Nov 2019 09:11:53 -0500 Subject: [PATCH] new gcs download manual test --- cfg/raw-archive/agent.hcl | 6 ++++++ cfg/raw-archive/job.hcl | 18 ++++++++++++++++++ cfg/raw-archive/repro | 6 ++++++ 3 files changed, 30 insertions(+) create mode 100644 cfg/raw-archive/agent.hcl create mode 100644 cfg/raw-archive/job.hcl create mode 100755 cfg/raw-archive/repro diff --git a/cfg/raw-archive/agent.hcl b/cfg/raw-archive/agent.hcl new file mode 100644 index 0000000..91054a0 --- /dev/null +++ b/cfg/raw-archive/agent.hcl @@ -0,0 +1,6 @@ +client { + enabled = true + options { + "driver.raw_exec.enable" = "1" + } +} diff --git a/cfg/raw-archive/job.hcl b/cfg/raw-archive/job.hcl new file mode 100644 index 0000000..60c67c1 --- /dev/null +++ b/cfg/raw-archive/job.hcl @@ -0,0 +1,18 @@ +job "job.hcl" { + datacenters = ["dc1"] + + group "group" { + task "tasks" { + driver = "raw_exec" + + artifact { + source = "gcs::https://www.googleapis.com/storage/v1/gcs-init-test-0101/sleep" + } + + config { + command = "sleep" + args = ["900"] + } + } + } +} diff --git a/cfg/raw-archive/repro b/cfg/raw-archive/repro new file mode 100755 index 0000000..e6fa812 --- /dev/null +++ b/cfg/raw-archive/repro @@ -0,0 +1,6 @@ +#!/bin/sh +nomad=nomad-0101 + +$nomad agent -dev -config=agent.hcl > /tmp/nomad.log 2>&1 & +sleep 10 +$nomad job run job.hcl