Create dummy module
This commit is contained in:
commit
1c94485587
7 changed files with 156 additions and 0 deletions
56
modules/dummy/jobspec.json
Normal file
56
modules/dummy/jobspec.json
Normal file
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
"ID": "hello-world",
|
||||
"Name": "hello-world",
|
||||
"TaskGroups": [
|
||||
{
|
||||
"Name": "servers",
|
||||
"Tasks": [
|
||||
{
|
||||
"Name": "web",
|
||||
"Driver": "docker",
|
||||
"Config": {
|
||||
"image": "busybox:1",
|
||||
"command": "httpd",
|
||||
"args": [
|
||||
"-v",
|
||||
"-f",
|
||||
"-p",
|
||||
"${NOMAD_PORT_www}",
|
||||
"-h",
|
||||
"/local"
|
||||
],
|
||||
"ports": [
|
||||
"www"
|
||||
]
|
||||
},
|
||||
"Templates": [
|
||||
{
|
||||
"DestPath": "local/index.html",
|
||||
"EmbeddedTmpl": "<h1>Hello, Ben!</h1>\n"
|
||||
}
|
||||
],
|
||||
"Resources": {
|
||||
"CPU": 50,
|
||||
"MemoryMB": 64
|
||||
}
|
||||
}
|
||||
],
|
||||
"Networks": [
|
||||
{
|
||||
"DynamicPorts": [
|
||||
{
|
||||
"Label": "www",
|
||||
"To": 8001
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Services": [
|
||||
{
|
||||
"PortLabel": "www",
|
||||
"Provider": "nomad"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue