Files
linuxkit/examples/dm-crypt-loop.yml
Avi Deitcher 1b3e13c880 Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-01-25 23:24:06 +02:00

47 lines
1.9 KiB
YAML

kernel:
image: linuxkit/kernel:5.10.104
cmdline: "console=tty0 console=ttyS0"
init:
- linuxkit/init:817099ace2d56ea2d20c7702ab8e1a8abc7d89fd
- linuxkit/runc:59c40661f2174ca6752d73086b91d63eeb98d021
- linuxkit/containerd:0dab9a4e2b9aa7f034873881a08890fd40b2755d
- linuxkit/ca-certificates:6003d7e78387f1fbb35bf1d1af300120be97f94b
onboot:
- name: sysctl
image: linuxkit/sysctl:f8a06fea01bfcb322e913213e22d35790168ed01
- name: dhcpcd
image: linuxkit/dhcpcd:a58543e8b40a29b3cd0c5d1e42ce21b71a8abcef
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: format
image: linuxkit/format:4686064ce75f8014a3cdf8c3227887a81a74180a
command: ["/usr/bin/format", "/dev/sda"]
- name: mount
image: linuxkit/mount:e3f4f07c424c1aff42a3b2009fb701540e313056
command: ["/usr/bin/mountie", "/dev/sda1", "/var/external"]
- name: loop
image: linuxkit/losetup:bcee190708d1612203309435bcef8a2d0b982d92
command: ["/usr/bin/loopy", "--create", "/var/external/storage_file"]
- name: dm-crypt
image: linuxkit/dm-crypt:501dade7be942e9203b6d640cc21ea5f975ded99
command: ["/usr/bin/crypto", "crypt_loop_dev", "/dev/loop0"]
- name: mount
image: linuxkit/mount:e3f4f07c424c1aff42a3b2009fb701540e313056
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:9b8e6b510b49da196a1e412aa95f364e3dd16576
env:
- INSECURE=true
- name: rngd
image: linuxkit/rngd:e35c1c671a9d35dbc42b83b620563ce472f8effb
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"