Create dummy module

This commit is contained in:
Ben Martin 2024-06-03 21:34:19 +01:00
commit 1c94485587
No known key found for this signature in database
GPG key ID: 11936493893207E4
7 changed files with 156 additions and 0 deletions

View 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"
}
]
}
]
}