Skip to content

Instantly share code, notes, and snippets.

@jippi

jippi/job.json Secret

Created October 25, 2016 11:34
Show Gist options
  • Save jippi/d2c60ae634f931ef379652481c57216f to your computer and use it in GitHub Desktop.
Save jippi/d2c60ae634f931ef379652481c57216f to your computer and use it in GitHub Desktop.
{
"AllAtOnce": false,
"Constraints": [
{
"LTarget": "${meta.worker}",
"Operand": "=",
"RTarget": "1"
}
],
"CreateIndex": 2263,
"Datacenters": [
"production"
],
"ID": "production-popularity",
"JobModifyIndex": 82875,
"Meta": {
"bownty.env.APP_ENV": "production",
"bownty.env.APP_VERSION": "5515"
},
"ModifyIndex": 82875,
"Name": "production-popularity",
"ParentID": "",
"Periodic": null,
"Priority": 50,
"Region": "global",
"Status": "running",
"StatusDescription": "",
"TaskGroups": [
{
"Constraints": null,
"Count": 1,
"Meta": null,
"Name": "popularity-scorer",
"RestartPolicy": {
"Attempts": 2,
"Delay": 15000000000,
"Interval": 60000000000,
"Mode": "delay"
},
"Tasks": [
{
"Artifacts": null,
"Config": {
"image": "quay.io/bownty/php",
"network_mode": "host",
"command": "/opt/deploy/www/production/htdocs/app/Console/cake",
"args": [
"popularity",
"scorer"
],
"labels": [
{
"com.bownty.project.name": "production"
},
{
"com.bownty.project.version": "5515"
},
{
"nomad.job.name": "production-popularity"
},
{
"nomad.job.task_group_name": "popularity-scorer"
},
{
"nomad.job.task_name": "server"
}
],
"auth": [
{
"password": "xxxx",
"username": "xxxx"
}
]
},
"Constraints": null,
"Driver": "docker",
"Env": {
"APP_VERSION": "5515",
"MEH": "2",
"DEBUG": "0",
"STATIC_ASSETS": "1",
"APP_ENV": "production"
},
"KillTimeout": 60000000000,
"LogConfig": {
"MaxFileSizeMB": 10,
"MaxFiles": 10
},
"Meta": {
"bownty.exec.command": "/opt/deploy/www/production/htdocs/app/Console/cake popularity scorer"
},
"Name": "server",
"Resources": {
"CPU": 500,
"DiskMB": 300,
"IOPS": 0,
"MemoryMB": 256,
"Networks": null
},
"Services": null,
"User": ""
}
]
},
{
"Constraints": null,
"Count": 1,
"Meta": null,
"Name": "impression-counter",
"RestartPolicy": {
"Attempts": 2,
"Delay": 15000000000,
"Interval": 60000000000,
"Mode": "delay"
},
"Tasks": [
{
"Artifacts": null,
"Config": {
"auth": [
{
"password": "xxxx",
"username": "xxxx"
}
],
"image": "quay.io/bownty/php",
"network_mode": "host",
"command": "/opt/deploy/www/production/htdocs/app/Console/cake",
"args": [
"popularity",
"impression_counter"
],
"labels": [
{
"com.bownty.project.name": "production"
},
{
"com.bownty.project.version": "5515"
},
{
"nomad.job.name": "production-popularity"
},
{
"nomad.job.task_group_name": "impression-counter"
},
{
"nomad.job.task_name": "server"
}
]
},
"Constraints": null,
"Driver": "docker",
"Env": {
"MEH": "2",
"DEBUG": "0",
"STATIC_ASSETS": "1",
"APP_ENV": "production",
"APP_VERSION": "5515"
},
"KillTimeout": 60000000000,
"LogConfig": {
"MaxFileSizeMB": 10,
"MaxFiles": 10
},
"Meta": {
"bownty.exec.command": "/opt/deploy/www/production/htdocs/app/Console/cake popularity impression_counter"
},
"Name": "server",
"Resources": {
"CPU": 500,
"DiskMB": 300,
"IOPS": 0,
"MemoryMB": 256,
"Networks": null
},
"Services": null,
"User": ""
}
]
}
],
"Type": "service",
"Update": {
"MaxParallel": 0,
"Stagger": 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment