Files
linuxkit/examples/dm-crypt-loop.yml
Rolf Neugebauer 6643090752 Update YAMLs to latest containerd/runc/init
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2020-04-26 23:52:57 +01:00

50 lines
1.9 KiB
YAML

kernel:
image: linuxkit/kernel:5.4.30
cmdline: "console=tty0 console=ttyS0"
init:
- linuxkit/init:7195dc244cd92af01fd0895fd204249a6114c5e2
- linuxkit/runc:f79954950022fea76b8b6f10de58cb48e4fb3878
- linuxkit/containerd:6ef473a228db6f6ee163f9b9a051102a1552a4ef
- linuxkit/ca-certificates:abfc6701b9ca17e34ac9439ce5946a247e720ff5
onboot:
- name: sysctl
image: linuxkit/sysctl:541f60fe3676611328e89e8bac251fc636b1a6aa
- name: dhcpcd
image: linuxkit/dhcpcd:2f8a9b670aa6e96a09db56ec45c9f07ef2a811ee
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: format
image: linuxkit/format:0b75e494eea0312f3015e6c6f7c5927620d56c96
command: ["/usr/bin/format", "/dev/sda"]
- name: mount
image: linuxkit/mount:19fa297189166206ac97261679c3e31fb140d48f
command: ["/usr/bin/mountie", "/dev/sda1", "/var/external"]
- name: loop
image: linuxkit/losetup:0730b61ac5c8803ba73318c2dd5121dc15cfbf34
command: ["/usr/bin/loopy", "--create", "/var/external/storage_file"]
- name: dm-crypt
image: linuxkit/dm-crypt:0ea63bfd97b719d185b69994b4856d97fbc8a2dd
command: ["/usr/bin/crypto", "crypt_loop_dev", "/dev/loop0"]
- name: mount
image: linuxkit/mount:19fa297189166206ac97261679c3e31fb140d48f
command: ["/usr/bin/mountie", "/dev/mapper/crypt_loop_dev", "/var/secure_storage"]
- name: bbox
image: busybox
command: ["sh", "-c", "echo 'secret things' >/var/secure_storage/secrets"]
binds:
- /var:/var
services:
- name: getty
image: linuxkit/getty:48f66df198981e692084bf70ab72b9fe2be0f880
env:
- INSECURE=true
- name: rngd
image: linuxkit/rngd:7fab61cca793113280397dcee8159f35dc37adcb
files:
- path: etc/dm-crypt/key
# the below key is just to keep the example self-contained
# !!! provide a proper key for production use here !!!
contents: "abcdefghijklmnopqrstuvwxyz123456"
trust:
org:
- linuxkit