Failed Artifact Download (Local Jar artifact)

369 views
Skip to first unread message

Jonez

unread,
Mar 21, 2018, 5:58:42 AM3/21/18
to Nomad
failed to download artifact "/java/appserver/appserver-0.0.1.jar": download not supported for scheme 'file'

my job.nomad file

job "APP-example" {
  region = "global"
  datacenters = ["blr1"]

  type = "service"

  group "App-test" {
    count = 1

    restart {
      attempts = 10
      interval = "5m"

      delay = "25s"

      mode = "delay"
    }

    ephemeral_disk {
      size = 300
    }

    task "curie-jar" {
      driver = "java"

      config {
        jar_path    = "appserver-0.0.1.jar"
        jvm_options = ["-Xmx2048m", "-Xms256m"]
      }
       artifact {
        source = "/java/appserver/appserver-0.0.1.jar"
         #destination = "java/appserver-0.0.1.jar"
      }

    resources {
        network {
          mbits = 200
          port "http" {
            static = "8080"
          }
        }
      }

    }
  }
}



Chelsea Komlo

unread,
Mar 22, 2018, 11:22:20 AM3/22/18
to Jonez, Nomad
Hi,

Thanks for the email- Nomad currently doesn't support arbitrary host file system access with the exception of rkt/docker volume mounting and raw_exec. See this Github issue for more information: https://github.com/hashicorp/nomad/issues/1897

In the meantime, you can set up a web server to host these files which will allow Nomad to fetch this via the artifact block: https://www.nomadproject.io/docs/job-specification/artifact.html

Thanks, let us know how else we can help.
Chelsea

--
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/f49dfac9-276f-4f76-b59c-63a290d4cb36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages