Skip to content

Instantly share code, notes, and snippets.

@Neutrollized
Last active January 31, 2023 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neutrollized/67f20b3ab4344c630ffeb4239aca4142 to your computer and use it in GitHub Desktop.
Save Neutrollized/67f20b3ab4344c630ffeb4239aca4142 to your computer and use it in GitHub Desktop.
Medium: Migrating off of Pivotal Cloud Foundry? Consider HashiCorp Nomad!
job "spring-music" {
datacenters = ["gcp-test"]
priority = 80
group "spring-music" {
network {
port "access" { static = 28080 }
}
task "spring-music" {
driver = "java"
config {
jar_path = "spring-music-1.0.jar"
jvm_options = ["-Xmx1024M", "-Xms1024M"]
args = ["--server.port=${NOMAD_PORT_access}"]
}
resources {
cpu = 500
memory = 1152
}
artifact {
source = "https://storage.googleapis.com/public-file-server/spring-music-1.0.jar"
mode = "file"
destination = "spring-music-1.0.jar"
}
service {
name = "spring-music"
provider = "nomad"
port = "access"
tags = ["spring", "java17"]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment