Created
December 16, 2022 04:59
-
-
Save juanluisbaptiste/ca96c93db89bce12618bc04c24bcd998 to your computer and use it in GitHub Desktop.
Example of a Java application Nomad job
This file contains hidden or 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 "java_test" { | |
datacenters = ["dc1"] | |
group "java_test" { | |
task "java_test" { | |
driver = "java" | |
artifact { | |
source = "https://github.com/juanluisbaptiste/nomad-demo/raw/master/java/nomad_demo.jar" | |
destination = "local/" | |
# options { | |
# checksum = "md5:fe6a81a04205394bf6eda8a6153cec0b" | |
# } | |
} | |
config { | |
jar_path = "local/nomad_demo.jar" | |
jvm_options = ["-Xmx128m", "-Xms64m"] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment