2017/10/09 15:51:29.642245 [DEBUG] client: failed to download artifact "./tmp/hello.jar": relative paths require a module with a pwdRunning `go-getter /tmp/hello.jar local` gives a success. Any idea what maybe wrong with the nomad config?
Here is the full config file.
job "local" {
datacenters = ["dc1"]
type = "service"
update { stagger = "10s" max_parallel = 1 }
group "java" { count = 1
task "api" {
driver = "java"
config { jar_path = "hello.jar" jvm_options = ["-Xmx1024m", "-Xms256m"] }
artifact { source = "./tmp/hello.jar" }
resources { cpu = 500 # MHz memory = 128 # MB
network { mbits = 100
port "http" { static = 9000 } } }
} }}
Thanks
You should have:
source = "/tmp/hello.jar"
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/nomad/issues
IRC: #nomad-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Nomad" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nomad-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nomad-tool/04408236-8a78-4e69-bf77-646884cddfd0%40googlegroups.com.