mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +00:00
demo: Dummy infrakit demo using nginx
This will change to something more distributed... Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
5122afffb1
commit
218ec6d3d5
30
projects/demo/infrakit/infrakit.json
Normal file
30
projects/demo/infrakit/infrakit.json
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"ID": "cattle",
|
||||||
|
"Properties": {
|
||||||
|
"Allocation": {
|
||||||
|
"Size": 5
|
||||||
|
},
|
||||||
|
"Instance": {
|
||||||
|
"Plugin": "instance-hyperkit",
|
||||||
|
"Properties": {
|
||||||
|
"Moby": "nginx-4.10",
|
||||||
|
"Disk" : 512,
|
||||||
|
"CPUs" : 2,
|
||||||
|
"Memory" : 1024
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Flavor": {
|
||||||
|
"Plugin": "flavor-vanilla",
|
||||||
|
"Properties": {
|
||||||
|
"Init": [
|
||||||
|
"test1",
|
||||||
|
"test2"
|
||||||
|
],
|
||||||
|
"Tags": {
|
||||||
|
"tier": "sample",
|
||||||
|
"project": "infrakit"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
27
projects/demo/infrakit/nginx-4.10.yml
Normal file
27
projects/demo/infrakit/nginx-4.10.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
kernel:
|
||||||
|
image: "mobylinux/kernel:4.10.x"
|
||||||
|
cmdline: "console=ttyS0 console=tty0 page_poison=1"
|
||||||
|
init: "mobylinux/init:00c3a5bbfd9794f4a3187fcc4a9f0c826c46d474"
|
||||||
|
system:
|
||||||
|
- name: sysctl
|
||||||
|
image: "mobylinux/sysctl:2cf2f9d5b4d314ba1bfc22b2fe931924af666d8c"
|
||||||
|
net: host
|
||||||
|
pid: host
|
||||||
|
ipc: host
|
||||||
|
capabilities:
|
||||||
|
- CAP_SYS_ADMIN
|
||||||
|
readonly: true
|
||||||
|
daemon:
|
||||||
|
- name: nginx
|
||||||
|
image: "nginx:alpine"
|
||||||
|
capabilities:
|
||||||
|
- CAP_NET_BIND_SERVICE
|
||||||
|
- CAP_CHOWN
|
||||||
|
- CAP_SETUID
|
||||||
|
- CAP_SETGID
|
||||||
|
- CAP_DAC_OVERRIDE
|
||||||
|
net: host
|
||||||
|
outputs:
|
||||||
|
- format: kernel+initrd
|
||||||
|
- format: iso-bios
|
||||||
|
- format: iso-efi
|
27
projects/demo/infrakit/nginx.yml
Normal file
27
projects/demo/infrakit/nginx.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
kernel:
|
||||||
|
image: "mobylinux/kernel:4.9.x"
|
||||||
|
cmdline: "console=ttyS0 console=tty0 page_poison=1"
|
||||||
|
init: "mobylinux/init:00c3a5bbfd9794f4a3187fcc4a9f0c826c46d474"
|
||||||
|
system:
|
||||||
|
- name: sysctl
|
||||||
|
image: "mobylinux/sysctl:2cf2f9d5b4d314ba1bfc22b2fe931924af666d8c"
|
||||||
|
net: host
|
||||||
|
pid: host
|
||||||
|
ipc: host
|
||||||
|
capabilities:
|
||||||
|
- CAP_SYS_ADMIN
|
||||||
|
readonly: true
|
||||||
|
daemon:
|
||||||
|
- name: nginx
|
||||||
|
image: "nginx:alpine"
|
||||||
|
capabilities:
|
||||||
|
- CAP_NET_BIND_SERVICE
|
||||||
|
- CAP_CHOWN
|
||||||
|
- CAP_SETUID
|
||||||
|
- CAP_SETGID
|
||||||
|
- CAP_DAC_OVERRIDE
|
||||||
|
net: host
|
||||||
|
outputs:
|
||||||
|
- format: kernel+initrd
|
||||||
|
- format: iso-bios
|
||||||
|
- format: iso-efi
|
Loading…
Reference in New Issue
Block a user