Last active
April 7, 2020 16:23
-
-
Save lgfa29/6cc9dde5e99c091f91827d718de7efbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
artifact |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "example" { | |
datacenters = ["dc1"] | |
type = "batch" | |
group "example" { | |
volume "volume" { | |
type = "host" | |
source = "volume" | |
} | |
task "example" { | |
driver = "exec" | |
config { | |
command = "ls" | |
args = ["/var/volume"] | |
} | |
artifact { | |
source = "https://gist.githubusercontent.com/lgfa29/6cc9dde5e99c091f91827d718de7efbe/raw/ad374be84b47bc2a601849b3f5e87f1c3954cbb5/artifact.txt" | |
destination = "/var/volume/artifact.txt" | |
} | |
template { | |
data = "template" | |
destination = "/var/volume/template.txt" | |
} | |
volume_mount { | |
volume = "volume" | |
destination = "/var/volume" | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020-04-07T08:14:27.255-0400 [TRACE] client.alloc_runner.task_runner: running prestart hook: alloc_id=176d378d-c2d7-4cb5-9ac6-1a9ad5146ec0 task=example name=volumes start="2020-04-07 08:14:27.255408898 -0400 EDT m=+235.971652137" | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020-04-07T08:14:27.256-0400 [TRACE] client.alloc_runner.task_runner: finished prestart hook: alloc_id=176d378d-c2d7-4cb5-9ac6-1a9ad5146ec0 task=example name=volumes end="2020-04-07 08:14:27.256971878 -0400 EDT m=+235.973215188" duration=1.563051ms | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020-04-07T08:14:27.257-0400 [TRACE] client.alloc_runner.task_runner: running prestart hook: alloc_id=176d378d-c2d7-4cb5-9ac6-1a9ad5146ec0 task=example name=artifacts start="2020-04-07 08:14:27.25706418 -0400 EDT m=+235.973307419" | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020-04-07T08:14:27.258-0400 [DEBUG] client.alloc_runner.task_runner.task_hook.artifacts: downloading artifact: alloc_id=176d378d-c2d7-4cb5-9ac6-1a9ad5146ec0 task=example artifact=https://gist.githubusercontent.com/lgfa29/6cc9dde5e99c091f91827d718de7efbe/raw/ad374be84b47bc2a601849b3f5e87f1c3954cbb5/artifact.txt | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020-04-07T08:14:27.259-0400 [TRACE] client.alloc_runner: handling task state update: alloc_id=176d378d-c2d7-4cb5-9ac6-1a9ad5146ec0 done=false | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020-04-07T08:14:27.350-0400 [TRACE] client.alloc_runner.task_runner: finished prestart hook: alloc_id=176d378d-c2d7-4cb5-9ac6-1a9ad5146ec0 task=example name=artifacts end="2020-04-07 08:14:27.350990605 -0400 EDT m=+236.067233949" duration=93.92653ms | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020-04-07T08:14:27.351-0400 [TRACE] client.alloc_runner.task_runner: running prestart hook: alloc_id=176d378d-c2d7-4cb5-9ac6-1a9ad5146ec0 task=example name=devices start="2020-04-07 08:14:27.351178407 -0400 EDT m=+236.067421719" | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020-04-07T08:14:27.355-0400 [TRACE] client.alloc_runner: AllocRunner has terminated, skipping alloc update: alloc_id=56ad6254-1856-63d6-1f35-215554549151 modify_index=12459 | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020-04-07T08:14:27.355-0400 [DEBUG] client: allocation updates applied: added=0 removed=0 updated=6 ignored=13 errors=0 | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020-04-07T08:14:27.358-0400 [TRACE] client.alloc_runner.task_runner: finished prestart hook: alloc_id=176d378d-c2d7-4cb5-9ac6-1a9ad5146ec0 task=example name=devices end="2020-04-07 08:14:27.358551157 -0400 EDT m=+236.074794409" duration=7.37269ms | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020-04-07T08:14:27.358-0400 [TRACE] client.alloc_runner.task_runner: running prestart hook: alloc_id=176d378d-c2d7-4cb5-9ac6-1a9ad5146ec0 task=example name=template start="2020-04-07 08:14:27.358590783 -0400 EDT m=+236.074834021" | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020/04/07 08:14:27.358700 [INFO] (runner) creating watcher | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020/04/07 08:14:27.358748 [INFO] (runner) starting | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020/04/07 08:14:27.358753 [DEBUG] (runner) running initial templates | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020/04/07 08:14:27.358757 [DEBUG] (runner) initiating run | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020/04/07 08:14:27.358760 [DEBUG] (runner) checking template 66f6181bcb4cff4cd38fbc804a036db6 | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020/04/07 08:14:27.358838 [DEBUG] (runner) rendering "(dynamic)" => "/opt/nomad/alloc/176d378d-c2d7-4cb5-9ac6-1a9ad5146ec0/example/var/volume/template.txt" | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020/04/07 08:14:27.400957 [INFO] (runner) rendered "(dynamic)" => "/opt/nomad/alloc/176d378d-c2d7-4cb5-9ac6-1a9ad5146ec0/example/var/volume/template.txt" | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020/04/07 08:14:27.401019 [DEBUG] (runner) diffing and updating dependencies | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020/04/07 08:14:27.401040 [DEBUG] (runner) watching 0 dependencies | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020/04/07 08:14:27.401056 [DEBUG] (runner) all templates rendered | |
Apr 07 08:14:27 luiz-x1 nomad[8185]: 2020-04-07T08:14:27.403-0400 [TRACE] client.alloc_runner.task_runner: finished prestart hook: alloc_id=176d378d-c2d7-4cb5-9ac6-1a9ad5146ec0 task=example name=template end="2020-04-07 08:14:27.40338178 -0400 EDT m=+236.119625127" duration=44.791106ms | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment