mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 09:39:08 +00:00
Add label for poweroff container to simplify tests
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
4d4598e784
commit
56121a774b
@ -7,12 +7,8 @@ init:
|
|||||||
- linuxkit/containerd:60e2486a74c665ba4df57e561729aec20758daed
|
- linuxkit/containerd:60e2486a74c665ba4df57e561729aec20758daed
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
image: "linuxkit/poweroff:961412b8ef5c5285de0d40ec076701d955eaa084"
|
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
|
||||||
pid: host
|
|
||||||
command: ["/bin/sh", "/poweroff.sh", "10"]
|
command: ["/bin/sh", "/poweroff.sh", "10"]
|
||||||
capabilities:
|
|
||||||
- CAP_SYS_BOOT
|
|
||||||
readonly: true
|
|
||||||
trust:
|
trust:
|
||||||
image:
|
image:
|
||||||
- linuxkit/kernel
|
- linuxkit/kernel
|
||||||
|
@ -7,12 +7,8 @@ init:
|
|||||||
- linuxkit/containerd:60e2486a74c665ba4df57e561729aec20758daed
|
- linuxkit/containerd:60e2486a74c665ba4df57e561729aec20758daed
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
image: "linuxkit/poweroff:961412b8ef5c5285de0d40ec076701d955eaa084"
|
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
|
||||||
pid: host
|
|
||||||
command: ["/bin/sh", "/poweroff.sh", "10"]
|
command: ["/bin/sh", "/poweroff.sh", "10"]
|
||||||
capabilities:
|
|
||||||
- CAP_SYS_BOOT
|
|
||||||
readonly: true
|
|
||||||
trust:
|
trust:
|
||||||
image:
|
image:
|
||||||
- linuxkit/kernel
|
- linuxkit/kernel
|
||||||
|
@ -7,12 +7,8 @@ init:
|
|||||||
- linuxkit/containerd:60e2486a74c665ba4df57e561729aec20758daed
|
- linuxkit/containerd:60e2486a74c665ba4df57e561729aec20758daed
|
||||||
onboot:
|
onboot:
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
image: "linuxkit/poweroff:961412b8ef5c5285de0d40ec076701d955eaa084"
|
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
|
||||||
pid: host
|
|
||||||
command: ["/bin/sh", "/poweroff.sh", "10"]
|
command: ["/bin/sh", "/poweroff.sh", "10"]
|
||||||
capabilities:
|
|
||||||
- CAP_SYS_BOOT
|
|
||||||
readonly: true
|
|
||||||
trust:
|
trust:
|
||||||
image:
|
image:
|
||||||
- linuxkit/kernel
|
- linuxkit/kernel
|
||||||
|
@ -22,11 +22,7 @@ onboot:
|
|||||||
image: "linuxkit/test-kernel-config:ecff41279ccbc408079a3996a956432651c6eb9c"
|
image: "linuxkit/test-kernel-config:ecff41279ccbc408079a3996a956432651c6eb9c"
|
||||||
readonly: true
|
readonly: true
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
image: "linuxkit/poweroff:961412b8ef5c5285de0d40ec076701d955eaa084"
|
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
|
||||||
pid: host
|
|
||||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||||
capabilities:
|
|
||||||
- CAP_SYS_BOOT
|
|
||||||
readonly: true
|
|
||||||
outputs:
|
outputs:
|
||||||
- format: kernel+initrd
|
- format: kernel+initrd
|
||||||
|
@ -14,11 +14,7 @@ onboot:
|
|||||||
capabilities:
|
capabilities:
|
||||||
- all
|
- all
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
image: "linuxkit/poweroff:961412b8ef5c5285de0d40ec076701d955eaa084"
|
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
|
||||||
pid: host
|
|
||||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||||
capabilities:
|
|
||||||
- CAP_SYS_BOOT
|
|
||||||
readonly: true
|
|
||||||
outputs:
|
outputs:
|
||||||
- format: kernel+initrd
|
- format: kernel+initrd
|
||||||
|
@ -12,13 +12,7 @@ onboot:
|
|||||||
- name: test
|
- name: test
|
||||||
image: "linuxkit/test-sysctl:c4df4c4d692904d6245dcdef1f4a79389bd3d894"
|
image: "linuxkit/test-sysctl:c4df4c4d692904d6245dcdef1f4a79389bd3d894"
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
image: "linuxkit/poweroff:961412b8ef5c5285de0d40ec076701d955eaa084"
|
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
|
||||||
net: host
|
|
||||||
pid: host
|
|
||||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
|
||||||
capabilities:
|
|
||||||
- CAP_SYS_BOOT
|
|
||||||
readonly: true
|
|
||||||
trust:
|
trust:
|
||||||
image:
|
image:
|
||||||
- linuxkit/kernel
|
- linuxkit/kernel
|
||||||
|
@ -16,11 +16,7 @@ onboot:
|
|||||||
capabilities:
|
capabilities:
|
||||||
- all
|
- all
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
image: "linuxkit/poweroff:961412b8ef5c5285de0d40ec076701d955eaa084"
|
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
|
||||||
pid: host
|
|
||||||
capabilities:
|
|
||||||
- CAP_SYS_BOOT
|
|
||||||
readonly: true
|
|
||||||
files:
|
files:
|
||||||
- path: /etc/ltp/baseline
|
- path: /etc/ltp/baseline
|
||||||
contents: "100"
|
contents: "100"
|
||||||
|
@ -24,11 +24,7 @@ onboot:
|
|||||||
image: "linuxkit/test-kernel-config:ecff41279ccbc408079a3996a956432651c6eb9c"
|
image: "linuxkit/test-kernel-config:ecff41279ccbc408079a3996a956432651c6eb9c"
|
||||||
readonly: true
|
readonly: true
|
||||||
- name: poweroff
|
- name: poweroff
|
||||||
image: "linuxkit/poweroff:961412b8ef5c5285de0d40ec076701d955eaa084"
|
image: "linuxkit/poweroff:a8f1e4ad8d459f1fdaad9e4b007512cb3b504ae8"
|
||||||
pid: host
|
|
||||||
command: ["/bin/sh", "/poweroff.sh", "3"]
|
command: ["/bin/sh", "/poweroff.sh", "3"]
|
||||||
capabilities:
|
|
||||||
- CAP_SYS_BOOT
|
|
||||||
readonly: true
|
|
||||||
outputs:
|
outputs:
|
||||||
- format: gcp-img
|
- format: gcp-img
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
FROM alpine:3.5
|
FROM alpine:3.5
|
||||||
ADD . ./
|
ADD . ./
|
||||||
ENTRYPOINT ["/bin/sh", "/poweroff.sh"]
|
ENTRYPOINT ["/bin/sh", "/poweroff.sh"]
|
||||||
|
LABEL org.mobyproject.config='{"net": "host","pid": "host", "ipc": "host", "readonly": true, "capabilities": ["CAP_SYS_BOOT"]}'
|
||||||
|
Loading…
Reference in New Issue
Block a user