From f9cdb0fbc4e91f5d265f734133fdad7c7d7021c0 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sun, 24 Feb 2019 20:32:24 +0100 Subject: [PATCH] server: add some persistance --- server.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server.yml b/server.yml index 56e3dec..b790322 100644 --- a/server.yml +++ b/server.yml @@ -16,6 +16,10 @@ onboot: binds: - /etc/sysctl.d/:/etc/sysctl.d/:ro + - name: mount + image: linuxkit/mount:v0.6 + command: ["/usr/bin/mountie", "-device", "/dev/sda", "/var/lib/adlin" ] + # Network: exposed - name: netvlan-iface-setup image: linuxkit/ip:v0.6 @@ -114,6 +118,7 @@ services: - CAP_SETGID binds: - /etc/dhcp/dhcpd.conf:/etc/dhcp/dhcpd.conf:ro + - /var/lib/adlin/dhcp:/var/lib/dhcp/ - name: tftpd image: nemunaire/tftpd:5340825352f9af28f5ac77bbe3243bdb70176903 @@ -284,10 +289,6 @@ files: source: ~/.ssh/id_ed25519.pub mode: "0400" - - path: /srv/students.csv - source: students.csv - mode: "0400" - - path: etc/iptables/rules.v4 contents: | *nat